Skip to content

License list sometimes missing nested components #145

@pasieronen

Description

@pasieronen

For example, this SBOM

{
  "bomFormat": "CycloneDX",
  "specVersion": "1.6",
  "components": [
    {
      "name": "one",
      "type": "library",
      "components": [
        {
          "type": "library",
          "name": "two",
          "licenses": [{"license": {"id": "BSD-3-Clause"}}]
        }
      ]
    }
  ]
}

When run through

./sbom-utility license list --input-file test.cdx.json 

products a license list containing just component "one", but not component "two":

usage-policy  license-type  license      resource-name  bom-ref  bom-location  license-id  license-name  license-expression  license-url  license-text-encoding  license-text-content-type  license-text-content  purl
------------  ------------  -------      -------------  -------  ------------  ----------  ------------  ------------------  -----------  ---------------------  -------------------------  --------------------  ----
UNDEFINED     invalid       NOASSERTION  one                     components                                                                                               

If component "one" has a license, then both components are correctly printed.

Tested with sbom-utility version 0.18.1 (latest).

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestinvestigatingInvestigating the issue for validity and/or possible solutions.priority-high

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions