Open carlosthe19916 opened 12 hours ago
I wondered about this TODO in the code. Is this issue the result of that TODO, @dejanb?
- get the quarkus-sbom advisories using
/api/v1/sbom/urn%3Auuid%3A01935352-6dc7-7582-9241-b2577f404d3f/advisory
At the risk of telling you something you already know, those ID's are universally unique so will never match any other SBOM ingested in anyone else's environment.
If you wanted to be pedantic in your already-excellently-detailed steps to reproduce you could do something like:
ID=$(http get "http://localhost:8080/api/v1/sbom?q=quarkus" | jq -r '.items[0].id')
http get "http://localhost:8080/api/v1/sbom/$ID/advisory" | jq . | head -n 100
But it's not necessary.
And it's totally fine to refer to your own ID's in your issues, I just wanted to make sure you knew they were meaningless in any db other than your own. Apologies if you already did. :smile:
yeah, sorry. I was in a hurry and copied and pasted the URLs from my browser. So I used my unique ID from my DB.
And thanks for sharing the http
command. That's a better way of reproducing and navigating JSONs. I'll keep it in mind so I can use it in future issues
Steps to reproduce:
/api/v1/sbom/urn%3Auuid%3A01935352-6dc7-7582-9241-b2577f404d3f/advisory
The response will be similar toIf you see the field
status.packages
then we have a package withoutid
and onlyname
.The problem is that I am using this current data for the image below:
affected dependencies
column you will see a count of packages affected by the Vulnerability.affected dependencies
column then there is supposed to be a table with all packages. Each package is link-able to the PagePackage Details
, which means that for each package it should be possible to go to the Package Details page. For navigating to the UI Package Details page we need an ID for each package.