Skip to content

Scanner history omits persisted QUEUED runs from status options and silently drops QUEUED-only shared filters #3744

Closed

Description

@romanlutz

Describe the bug

The scanner-history status allowlist omits the persisted QUEUED state. A QUEUED-only URL loses its status filter and queries all statuses instead.

Steps/Code to Reproduce

Open scanner history with a shared URL/status filter containing only QUEUED, then inspect the request payload and available status options.

Expected Results

Offer all six persisted backend states and submit run_statuses=['QUEUED'] for a QUEUED-only shared filter.

Actual Results

Frontend allowlist drops the valid state, so request omits run_statuses entirely. Existing filter test calls QUEUED synthetic/invalid even though frontend ScenarioRunState and Pydantic backend enum include it.

Verified references: history filter, backend states.

Proposed fix/regression: add QUEUED, replace outdated test expectation, round-trip all canonical states and assert actual request payload; consider shared exhaustive contract.

Screenshots

Not applicable; request-state evidence is inline.

Versions

Tested commit d3446e0, PyRIT 1.2.0.dev0, offline component and backend-contract scope. Evidence: files/evidence/round8/backend-status-contract.txt and regressions.txt; local paths are not attachments.

Activity

  1. added
    help wanted
    on Oct 31, 2026
  2. romanlutz commented on Nov 2, 2026

    @romanlutz
    ContributorAuthor

    This is assigned to Shawn Russ (@shawnrruss) even though I can't officially assign it without a comment on this PR.

  3. shawnrruss commented on Nov 2, 2026

    @shawnrruss
    Contributor

    Hi Roman Lutz (@romanlutz), I'd like to take this one. The fix and tests are in PR #3815.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

help wanted

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions