Skip to content

apiserver: "Failed to load table data" when opening "Vulnerability Audit" page #6570

Description

@migus-rs

Current Behavior

As the title suggests, simply opening the "Vulnerability Audit" tab results in a long wait while loading, followed by the error message "Failed to load table data".

Image

This happens on a portfolio with around 66K projects and 14.5M components running DT version 5.0.2.
The test user has access to all projects.
DTv4 with a similar portfolio is able to open the same view in just a few seconds.

A look at the database with pgAdmin shows the query in question taking more than several minutes.
In fact, it is still running ~30min after the UI gave up, so this might eventually become a resource/connection exhaustion problem as well?

Image

Unfortunately, pgAdmin cuts off the query after 61 lines and the source code has quite a lot of dynamic annotations, so I cannot provide the output of EXPLAIN at this time.

Steps to Reproduce

  1. Deploy DTv5
  2. Have a modestly-sized portfolio
  3. Navigate to the "Vulnerability Audit" tab in the UI
  4. observe the issue

Expected Behavior

The UI works as expected and database resources are not exhausted.

Dependency-Track Version

5.x

Browser

N/A

Checklist

Metadata

Metadata

Assignees

No one assigned

    Labels

    defectSomething isn't workingp2Non-critical bugs, and features that help organizations to identify and reduce riskperformancesize/SSmall effort

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions