Closed cboehm-it closed 4 months ago
Fixed by #71
Hmm, I'm not able to reproduce the crash with your minimal sbom and according to what you fixed in #71, it seems to me that the crash was related to an invalid external reference, which is probably missing in your minimal example?
@gernot-h I was able to reproduce it (owtherwise I won't have merged the fix 😃). The problem only occurs if you write an updated SBOM.
Ok, found the issue. This has nothing to do with the PackageURL, but with an attachment in our SW360 instance using a "%" in the filename:
So CaPyCli crashes when trying to set the external reference for this attachment. Seems we lack escaping of strings here. Will prepare an MR soon.
We use CaPyCli also to clear debian packages. Some of them have url entries in the SBOM like: "pkg:deb/debian/xorg-server@2:1.20.4-1+deb10u5?arch=source&distro=industrial-os-2.4".
The following is working with CaPyCli v2.1.0
capycli bom map
and resulting in SBOM with"purl": "pkg:deb/debian/xorg-server@2:1.20.4-1+deb10u5?arch=source&distro=industrial-os-2.4"
With CaPyCli > 2.1.0 you get a Traceback.
I support you a minimal sbom for verification. some-component.json