Vulnerability Report PDF Export via API Is Missing Content
Summary
When exporting the vulnerability report via the GitLab API in PDF format, the resulting PDF is generated but contains no content. The issue does not occur when exporting as CSV.
Steps to reproduce
- Navigate to a project or group Security & Compliance > Vulnerability Report
- Ensure there are visible findings in the report
- Use the following API to export the report in PDF format:
curl --header "PRIVATE-TOKEN: <your_token>" \
"https://<your_gitlab_instance>/api/v4/projects/<project_id>/vulnerability_exports?format=pdf"
- Download the generated file once the export is ready
- Open the downloaded PDF file
Expected behavior
The exported PDF should contain a readable vulnerability report with the list of findings, metadata, and summaries.
Actual behavior
The PDF file is blank.
Reproduced on
GitLab.com
Attachments
Edited by 🤖 GitLab Bot 🤖