Skip to content

CAS Storage download URL generation fails when backend is down #2795

@javirln

Description

@javirln

When attempting to download evidence from a CAS backend that is no longer in a valid state, the redirect to the control plane currently fails with a 500 error. This scenario must be properly handled.

The fix shall include:

  • Verifying that the CAS backend from which the evidence is being retrieved is in a valid state. If it is not, return the error CASBackendErrorReason_CAS_BACKEND_ERROR_REASON_INVALID.
  • Ensuring that the middleware stack updates and validates the CAS backend status before the request reaches GetDownloadURL in the CASRedirectService, so that the backend state is accurate at the time of processing.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions