Skip to content

REST pagination does not work for findings/vulnerabilities endpoint #2588

@empwilli

Description

@empwilli

Current Behavior

In contrast to other REST API endpoints (/v1/project, /v1/vulnerability/project/<uuid>, ...) the results of requests to the /v1/finding/project/<uuid> endpoint are supplied without pagination. For all other endpoints the combination of page and limit query provides paginated results.

Edit: the /v1/vulnerability endpoint is similarly affected.

Steps to Reproduce

curl -X 'GET' \
  'https://dtrack.tld/api/v1/finding/project/<uuid>&page=2&limit=10' \
  -H 'accept: application/json' \
  -H 'X-Api-Key: '

Edit: fixed curl command

Expected Behavior

This endpoint should also provide pagination.

Dependency-Track Version

4.7.1

Dependency-Track Distribution

Container Image

Database Server

PostgreSQL

Database Server Version

No response

Browser

N/A

Checklist

Metadata

Metadata

Assignees

No one assigned

    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