Skip to content

Use project-specific fallback filenames for CycloneDX exports - #2159

Open
sarunasdjacenko wants to merge 1 commit into
DependencyTrack:mainfrom
Draegerwerk:fix-project-export-fallback-filenames
Open

sarunasdjacenko wants to merge 1 commit into
DependencyTrack:mainfrom
Draegerwerk:fix-project-export-fallback-filenames

Conversation

@sarunasdjacenko

Copy link
Copy Markdown

Match the API's UUID, export variant and format naming scheme when Content-Disposition is missing or inaccessible under CORS.

Preserve server-provided filenames when the header is readable.

Description

Use <project-uuid>-<variant>.cdx.<format> as the fallback filename for project CycloneDX exports.

Previously, Inventory, Inventory with Vulnerabilities and VDR exports shared the fallback filename bom.json or bom.xml, making downloaded files difficult to distinguish. VEX used vex.json.

The new fallback matches the API's filename convention and distinguishes both projects and export types.

Addressed Issue

Closes #2158

Additional Details

This is a one-line change to the project export modal. Readable server-provided filenames continue to take precedence.

No changes to export contents, API behaviour, CORS configuration or the shared download helper are included.

Checklist

@sarunasdjacenko
sarunasdjacenko force-pushed the fix-project-export-fallback-filenames branch 2 times, most recently from 0d8e251 to 87e13ca Compare November 25, 2026 10:46
Match the API's UUID, export variant and format naming scheme when
Content-Disposition is missing or inaccessible under CORS.

Preserve server-provided filenames when the header is readable.

Signed-off-by: Sarunas Djacenko <[email protected]>
@sarunasdjacenko
sarunasdjacenko force-pushed the fix-project-export-fallback-filenames branch from 87e13ca to b15a168 Compare November 25, 2026 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use project-specific fallback filenames for CycloneDX exports

1 participant