Skip to content

Use project-specific fallback filenames for CycloneDX exports #2158

Backlog

Description

@sarunasdjacenko

Current Behavior

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.

Checklist

Activity

  1. added
    enhancement
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions