DependencyTrack / DependencyTrack/dependency-track
Inactive parent when its actual active
- Dominant language
- Java
- Stars
- 4.2k
- Forks
- 811
- Avg merge
- 8h 39m
- Merged PRs (30d)
- 237
Description
### 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](https://github.com/DependencyTrack/dependency-track/blob/master/CONTRIBUTING.md#filing-issues)
- [X] I have checked the [existing issues](https://github.com/DependencyTrack/dependency-track/issues) for whether this defect was already reported
Contributor guide
Assessment
This issue has not been assessed yet.