Can't upload BOM
leo-beliakov opened this issue · comments
leo-beliakov commented
Current Behavior
When I'm trying to upload the BOM, I'm getting the following error:
Missing required creator property 'bom'
Steps to Reproduce
To generate the BOM I use cycloneDX and I set schema version to 1.5 or 1.4 or 1.2
To upload the BOM I use the following command:
curl -X "PUT" "http://localhost:8081/api/v1/bom" \
-H 'Content-Type: application/json' \
-H 'X-API-Key: odt_PacJhjzAWPGoPD5ouDD4yjA6OPnCKtgj' \
-d @/Users/Leo/Downloads/bom.json
Expected Behavior
I expect my BOM to be uploaded successfully
Dependency-Track Version
4.10.0
Dependency-Track Distribution
Container Image
Database Server
N/A
Database Server Version
No response
Browser
Google Chrome
Checklist
- I have read and understand the contributing guidelines
- I have checked the existing issues for whether this defect was already reported
leo-beliakov commented
It should have been payload.json instead of bom.json.