After send a SBOM request to /api/v1/scan
and the subsequent request to retrieve the sbom
GET /api/v1/scan/{scan_request_id}/report?sbom_media_type=xxxx, if the sbom_media_type is missed in the parameter
Current return code is 404 not found.
What did you expect to happen:
The API should return 400 to the client and also log the error message in the trivy.log so that user could diagnostic the current issue, the error message should like that: the sbom_media_type is missed for sbom scan report
Environment:
Harbor version: v2.10.0
Harbor Scanner Adapter for Trivy version: sbom prototype
What steps did you take and what happened:
After send a SBOM request to /api/v1/scan and the subsequent request to retrieve the sbom
GET /api/v1/scan/{scan_request_id}/report?sbom_media_type=xxxx
, if the sbom_media_type is missed in the parameter Current return code is 404 not found.What did you expect to happen:
The API should return 400 to the client and also log the error message in the trivy.log so that user could diagnostic the current issue, the error message should like that:
the sbom_media_type is missed for sbom scan report
Environment: