Closed carlosthe19916 closed 15 hours ago
Reproduced
I've been uploading one, then uploading the other.
Found myself in this state when selecting multiple files in the same file-picker operation.
@bobmcwhirter I am reopening this issue as it is still happening. I uploaded the same files, the order does not matter and I can see 2 vulnerabilities rather than only one:
GET /api/v1/vulnerability
https://github.com/trustification/trustify/assets/2582866/e6268b6d-7723-4535-bf3e-335b25f0d5c4
Well crap. Thanks!
Steps to reproduce:
GET /api/v1/vulnerability
and you will see the following response:Both items in the response have the same
identifier
. The problem is that theidentifier
is being used to fetch a single Advisory e.g./api/v1/vulnerability/CVE-2021-32714
. The question is, which Vulnerability am I fetching if both have the sameidentifier
?The other entities are using something like
uuid
, not sure if that would be the solution but whatever the solution is, there should be a unique key to identify a Vulnerability