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
Bug description
The method get_vulnerability_ids() in "Finding" (dojo/models.py) returns an empty string if certain conditions are met.
If both self.id is None and self.unsaved_vulnerability_ids != True are met, then get_vulnerability_ids() only prints "finding has no unsaved vulnerability references" and afterwards returns an empty string.
This leads to invalid hash code calculations, which messes with the deduplication in my use case.
We create findings via the API within tests of type Dependency Track Finding Packaging Format (FPF) Export. For those the fields component_name, component_version and vulnerability_ids are used for the hash code generation. As vulnerability_ids is an empty string, the deduplication that uses the hash codes does not work properly.
Steps to reproduce
Create product and engagement
Create test ("Dependency Track Finding Packaging Format (FPF) Export")
Import finding via the API (POST /api/v2/findings)
Bug description
The method
get_vulnerability_ids()
in "Finding" (dojo/models.py) returns an empty string if certain conditions are met.If both
self.id is None
andself.unsaved_vulnerability_ids != True
are met, thenget_vulnerability_ids()
only prints "finding has no unsaved vulnerability references" and afterwards returns an empty string.This leads to invalid hash code calculations, which messes with the deduplication in my use case.
We create findings via the API within tests of type
Dependency Track Finding Packaging Format (FPF) Export
. For those the fields component_name, component_version and vulnerability_ids are used for the hash code generation. As vulnerability_ids is an empty string, the deduplication that uses the hash codes does not work properly.Steps to reproduce
Expected behavior
I expect that this method returns the vulnerability_ids in all cases and thus hash_codes are properly generated.
Deployment method (select with an
X
)Environment information
Logs
The text was updated successfully, but these errors were encountered: