Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Importing scans fails for Generic Findings Import due to lack of file extension #79

Closed
sarahgibs opened this issue Feb 24, 2023 · 0 comments · Fixed by #80
Closed

Importing scans fails for Generic Findings Import due to lack of file extension #79

sarahgibs opened this issue Feb 24, 2023 · 0 comments · Fixed by #80

Comments

@sarahgibs
Copy link
Contributor

The upload_scan method does not specify a file name, leaving requests to use the generic value of 'file' in the multipart form upload. Recent changes to DefectDojo have made it so the Generic Findings Import no longer accepts a filename without a file extension. The requests sent via the v2 api fail with a 400 error.

`--dc1b35f1cdc7acb8055be35b6168dd63
Content-Disposition: form-data; name="file"; filename="file"

Date,Title,CweId,CVE,Url,Severity,Description,Mitigation,Impact,References,Active,Verified,FalsePositive,Duplicate,CVSSV3`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant