Skip to content

/api/v1/vulnerability/project/<UUID> endpoint does not support pagination #2914

@grumpy-miner

Description

@grumpy-miner

Current Behavior

Using utilising api endpoint /api/v1/vulnerability/project/{project_id} offset query parameter doesn't work.
Changing offset parameter doesn't change output from endpoint.

Tested as well with query parameters limit & page and pageNumber & pageSize

When using offset query parameter in endpoint /api/v1/component/project/{project_id} endpoint works as expected.

Steps to Reproduce

  1. Create project
  2. Upload SBOM file containing components having vulnerabilities
  3. Call /api/v1/vulnerability/project/{project_id} with offset=0
  4. Call /api/v1/vulnerability/project/{project_id} with offset=1
  5. Compare response

Expected Behavior

If project contains vulnerabilities then response from third and fourth step should be different

Dependency-Track Version

4.8.2

Dependency-Track Distribution

Container Image

Database Server

N/A

Database Server Version

No response

Browser

N/A

Checklist

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions