You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use project-specific fallback filenames for CycloneDX exports #2158
When the frontend cannot read an export response's Content-Disposition
header, project exports use generic fallback filenames:
Inventory: bom.json / bom.xml
Inventory with Vulnerabilities: bom.json / bom.xml
VDR: bom.json / bom.xml
VEX: vex.json
This occurs, for example, in cross-origin deployments where the API
does not expose Content-Disposition through CORS.
The filenames do not distinguish projects, and several export types
share the same name, making downloaded files difficult to identify.
The API already supplies distinct UUID-prefixed filenames, but these
are not used when the header is inaccessible to frontend JavaScript.
Proposed Behavior
Use fallback filenames that match the API's existing naming convention:
<UUID>-inventory.cdx.json
<UUID>-withVulnerabilities.cdx.json
<UUID>-vdr.cdx.json
<UUID>-vex.cdx.json
Supported XML exports should use the corresponding .cdx.xml extension.
Include the project UUID, selected export type and effective format
so downloaded files can be distinguished without opening them.
Continue to prefer the server-provided filename whenever
Content-Disposition is readable. No changes to export contents or
API behaviour are proposed.
Activity