Commit 9ca780c
authored
Fix: Populate vulnerability_id field in BlackDuck Binary Analysis parser (#13973)
* Fix Tenable CSV import fails with 'Version of CPE not implemented'
- Add exception handling around CPE parsing in TenableCSVParser
- Log unsupported CPE versions at DEBUG level instead of crashing
- Allows import to continue when encountering unsupported CPE formats
- Fixes issue #11243
* Fix: Populate vulnerability_id field in BlackDuck Binary Analysis parser
- Add unsaved_vulnerability_ids assignment when CVE is present
- This ensures the vulnerability_id field is populated for de-duplication
- Fixes #12442
* Test: Add assertions for vulnerability_id field in BlackDuck Binary Analysis parser tests
- Verify unsaved_vulnerability_ids is populated with CVE value
- Add specific assertion for single vuln test case
- Add general assertion for multiple vulns test case
- Related to #124421 parent 3c7c4d5 commit 9ca780c
2 files changed
Lines changed: 9 additions & 0 deletions
File tree
- dojo/tools/blackduck_binary_analysis
- unittests/tools
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
107 | 110 | | |
108 | 111 | | |
109 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
41 | 44 | | |
42 | 45 | | |
43 | 46 | | |
| |||
53 | 56 | | |
54 | 57 | | |
55 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
0 commit comments