lib4sbom icon indicating copy to clipboard operation
lib4sbom copied to clipboard

cyclonedx packages fails to generate

Open Tim-McDougall opened this issue 1 year ago • 1 comments

In the cyclonedx_parser.py file, when it saves the package metadata, it saves the key of the dictionary as a tuple: https://github.com/anthonyharrison/lib4sbom/blob/b7390b1a3c0124afb8856b4ea6a3fd33cda89919/lib4sbom/cyclonedx/cyclonedx_parser.py#L419

This is an invalid key when trying to export to json with the generator, and the dumps call will fail with an exception.

Tim-McDougall avatar Oct 23 '24 18:10 Tim-McDougall

Have you got some sample code where it fails? A tuple is a valid key for a Python dictionary

anthonyharrison avatar Nov 06 '24 22:11 anthonyharrison

Unable to reproduce without further information being provided.

anthonyharrison avatar Jun 25 '25 09:06 anthonyharrison