Skip to content

Export/download buttons allow duplicate downloads on repeated clicks #1658

Description

@heyiamwahab236

Current Behavior

On the project Findings view (Export VEX / Export VDR) and the project Components view (Download BOM – inventory/with-vulnerabilities, and Download component – CSV), the export buttons have no guard against repeated clicks. Each click immediately starts a new download, so clicking while a download is already in progress triggers multiple simultaneous requests and duplicate file downloads.

Steps to Reproduce

  1. Open a project with findings/components.
  2. On Findings, rapidly click "Export VEX" (or VDR); on Components, rapidly click "Download BOM" (or the CSV option).
  3. Multiple identical downloads are triggered.

Expected Behavior

While an export is in progress the control should be disabled (with a spinner), so one click = one download until it completes.

Dependency-Track Frontend Version

4.x

Browser

Microsoft Edge

Browser Version

No response

Operating System

Windows

Checklist

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions