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

POST on /v1/component does not update external references #3769

Closed
2 tasks done
mboczkowski opened this issue May 29, 2024 · 0 comments · Fixed by #3805
Closed
2 tasks done

POST on /v1/component does not update external references #3769

mboczkowski opened this issue May 29, 2024 · 0 comments · Fixed by #3805
Labels
defect Something isn't working good first issue Good for newcomers p2 Non-critical bugs, and features that help organizations to identify and reduce risk size/S Small effort
Milestone

Comments

@mboczkowski
Copy link

Current Behavior

When I update a component's data I supply external references for the component, as specified in API spec for /v1/component endpoint. The update is processed and 200 OK is returned, but when I read the component again, I can see no external references.

Steps to Reproduce

  1. Get component's data (without an external reference)
  2. Add external reference(s) to the payload, i.e.:'[{"type": "website", "url": "https://some.host", "comment": "added with API"}]'
  3. Execute POST on /v1/component with the payload
  4. After successful execution, get the component's data again
  5. There is no external reference supplied in the component's data retrieved

Expected Behavior

To have external reference updated, when supplied

Dependency-Track Version

4.10.x

Dependency-Track Distribution

Container Image

Database Server

N/A

Database Server Version

No response

Browser

N/A

Checklist

@mboczkowski mboczkowski added defect Something isn't working in triage labels May 29, 2024
@nscuro nscuro added p2 Non-critical bugs, and features that help organizations to identify and reduce risk good first issue Good for newcomers size/S Small effort and removed in triage labels May 29, 2024
@nscuro nscuro added this to the 4.12 milestone Jun 4, 2024
@nscuro nscuro modified the milestones: 4.12, 4.11.4 Jun 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect Something isn't working good first issue Good for newcomers p2 Non-critical bugs, and features that help organizations to identify and reduce risk size/S Small effort
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants