dependency-track
dependency-track copied to clipboard
Inactive parent when its actual active
Current Behavior
I have 2 branches of the projetc:
- master
- release-test
Both projects are active on dep-track
(and it's not a web ui bug, the query gives the same information)
When I try to set the master project as parent for release-test it gives out:
request:
response:
UPDATE:
This problem is solved if, before assigning a parent to a child project, you send a post request updating the parent of the project and specifying active:true
Steps to Reproduce
1.Create project via bom upload (with flag autocreate=true) via curl command 2. Try to create child project via curl (also with a bom upload and with flag autocreate=true) 4. Try to give parent for the child project via curl
Expected Behavior
Parent for the active project is set correctly
Dependency-Track Version
4.10.1
Dependency-Track Distribution
Container Image
Database Server
H2
Database Server Version
No response
Browser
N/A
Checklist
- [X] I have read and understand the contributing guidelines
- [X] I have checked the existing issues for whether this defect was already reported
is probably already fixed by https://github.com/DependencyTrack/dependency-track/pull/3305 edit: or not - i thought there was also a PR that cleaned the DB and set a default.. not sure where this is