eclipse-sw360 / sw360

SW360 project
https://www.eclipse.org/sw360/
Other
116 stars 96 forks source link

fix(importCDX):Improve error message when PURL is invalid #2457

Open akshitjoshii opened 1 month ago

akshitjoshii commented 1 month ago

Currently, when an import fails due to an invalid PURL (Package URL) present in the SBOM, the error message lacked details about the failed component and gives a null exception. Now the components having malformed PURL are listed for the users to know where it failed.

Closes : #2451

Before : image

Now we get info of the failed component : image

sameed20 commented 1 month ago

While importing an SBOM, packages are not getting linked to the releases. If the importing package has the VCS in SBOM. aktest

akshitjoshii commented 1 month ago

@sameed20 Pls test now.

sameed20 commented 1 month ago

Test Successful. Now, if a package contains a malformed purl / purl missing then it's creating the comp and release for the that package, but the package is not getting created and user can see that malformed/missing url package info in the import summary message.

afsahsyeda commented 2 weeks ago

Code Looks good to me.