Skip to content

Conversation

@Rainer-Keller
Copy link

The relationships were only added if a file information was not already written to the output writer. In all other cases, the relationship got lost without notice.

In my opinion this is a very serious issue because it invalidates the content of the written SBOM without the user noticing.

The two test cases of the tagvalue_writer also had relationships declared in their setup, but missing them in the validated output content.

The relationships were only added if a file information was not already
written to the output writer. In all other cases, the relationship got lost.

Moving the writing of the relationship outside of the if statement makes it
write the relationship info in all cases.

The test cases for tagvalue_write did also declare relationships, but
the validation data was missing them.

Signed-off-by: Rainer Keller <mail@rainerkeller.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant