Skip to content

License does not serialize license_url to the output. #179

Closed

Description

@schlenk

The license_url optional field is not serialized to the XML output.
The spec recommends to also add the ExternalReference with type LICENSE, but i would expect the URL in the output, if it is given as part of the License type.

Probably just missing in the code here:

if license.license:

Seen using cyclonedx-python-lib 1.3.0, but the code seems identical in the main branch.

Activity

  1. madpah commented on Feb 21, 2022

    @madpah
    Collaborator

    Hi @schlenk - thanks for the report. Totally correct here - bug discovered.

    Will get this fixed and into the next release (due this week).

  2. self-assigned this
    on Feb 21, 2022
  3. added
    bug
    on Feb 21, 2022
  4. added this to the 2.0.0 milestone on Feb 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions