You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
External References are removed from the project when sbom is uploaded to that project. The external references are removed no matter if one uploads the sbom through UI or with API.
When uploading the sbom by calling the API, I am calling the /v1/bom endpoint with PUT so I am surprised that it edits the properties of the project itself.
Steps to Reproduce
Create a project in Dependency Track
Add external references by calling the API endpoint with PATCH/v1/project/{uuid}. Add the external references in the payload e.g.
"externalReferences": [
{
"type": "vcs",
"url": "<source code url>",
"comment": "<This is the link to the source code>"
}
Verify the external references by visiting project -> view details -> external references
I tried to follow and understand the code, but I can't see any error (but please don't rely on me, I'm not that familiar with the code yet). This is a moonshot, but does a restart of DT suddenly show up the references? If that's the case, setting the ALPINE_DATANUCLEUS_CACHE_LEVEL2_TYPE=none env var will resolve your issue. That would be a temporary resolution, since this will become the default with 4.13.
It seems external references are not persisted at all. So this is not really a bug, but rather a missing feature, although I understand how this can be seen as a bug from the outside.
Current Behavior
External References are removed from the project when sbom is uploaded to that project. The external references are removed no matter if one uploads the sbom through UI or with API.
When uploading the sbom by calling the API, I am calling the
/v1/bom
endpoint withPUT
so I am surprised that it edits the properties of the project itself.Steps to Reproduce
PATCH
/v1/project/{uuid}
. Add the external references in the payload e.g.Expected Behavior
The external references persist when SBOM is uploaded.
Dependency-Track Version
4.12.6
Dependency-Track Distribution
Container Image
Database Server
PostgreSQL
Database Server Version
No response
Browser
Mozilla Firefox
Checklist
The text was updated successfully, but these errors were encountered: