Commit e44b210
committed
fix(fossid-webapp): Return empty PURL when artifact name is empty
The packageurl-jvm library throws MalformedPackageURLException when
the name component is empty. This can happen for snippets with empty
artifact names.
Return an empty string early when the name is blank.
This is a fixup for 334810d.
Signed-off-by: Nicolas Nobelis <nicolas.nobelis@bosch.com>1 parent 6159101 commit e44b210
File tree
1 file changed
+15
-7
lines changed- plugins/scanners/fossid/src/main/kotlin
1 file changed
+15
-7
lines changedLines changed: 15 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
323 | 331 | | |
324 | 332 | | |
325 | 333 | | |
| |||
0 commit comments