Skip to content

API returns 404 on findings/generate_report/ #12015

@9alexx3

Description

@9alexx3

Steps to reproduce

  1. Go to '/api/v2/oa3/swagger-ui/' path.
  2. Click on 'findings'.
  3. Scroll down to '/api/v2/findings/generate_report/'.
  4. Fill authorizations with a valid credentials.
  5. Execute it.

In theory, the /api/v2/findings/generate_report/ endpoint pulls a report of ALL findings formatted in a .JSON but gives the following JSON:
{“detail”: “Not found.”, “message”:“”}

Therefore, I performed another API query (/api/v2/products/<ID_PRODUCT>/generate_report/) to pull all the findings for product 1 from my DefectDojo instance to verify that the findings have been created correctly and the output is correct.

Image

Image

Image

I used the command docker compose logs -f and the nginx log indicates that there is a 404 - Not Found error in the findings endpoint.

Image

Deployment method (select with an X)

  • Docker Compose
  • Kubernetes
  • GoDojo

Environment information

  • Operating System: Rocky Linux 9.5 (Blue Onyx)
  • Docker Compose version: Docker Compose version v2.32.4
  • DefectDojo version: v. 2.44.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions