Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(RELEASE-1345): avoid failing on invalid purl string #343

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

mmalina
Copy link
Contributor

@mmalina mmalina commented Dec 13, 2024

The sboms can contain invalid non-rpm purl strings and we would fail on parsing them using the packageurl module.

Avoid these failures by parsing the purl type in our own function and only pass it to packageurl if it's an rpm purl. Otherwise skip it.

@mmalina mmalina requested a review from a team as a code owner December 13, 2024 11:21
The sboms can contain invalid non-rpm purl strings
and we would fail on parsing them using the packageurl
module.

Avoid these failures by parsing the purl type in our
own function and only pass it to packageurl if it's
an rpm purl. Otherwise skip it.

Signed-off-by: Martin Malina <[email protected]>
@mmalina mmalina merged commit e45b8a7 into konflux-ci:main Dec 13, 2024
3 checks passed
@mmalina mmalina deleted the purl-fix branch December 13, 2024 15:40
mmalina added a commit to mmalina/release-service-catalog that referenced this pull request Dec 16, 2024
The new image contains a fix to avoid failing on invalid
purl strings.

See this related PR:
konflux-ci/release-service-utils#343

Signed-off-by: Martin Malina <[email protected]>
mmalina added a commit to mmalina/release-service-catalog that referenced this pull request Dec 16, 2024
The new image contains a fix to avoid failing on invalid
purl strings.

See this related PR:
konflux-ci/release-service-utils#343

Signed-off-by: Martin Malina <[email protected]>
mmalina added a commit to mmalina/release-service-catalog that referenced this pull request Dec 16, 2024
The new image contains a fix to avoid failing on invalid
purl strings.

See this related PR:
konflux-ci/release-service-utils#343

Signed-off-by: Martin Malina <[email protected]>
mmalina added a commit to mmalina/release-service-catalog that referenced this pull request Dec 16, 2024
The new image contains a fix to avoid failing on invalid
purl strings.

See this related PR:
konflux-ci/release-service-utils#343

Signed-off-by: Martin Malina <[email protected]>
mmalina added a commit to mmalina/release-service-catalog that referenced this pull request Dec 16, 2024
The new image contains a fix to avoid failing on invalid
purl strings.

See this related PR:
konflux-ci/release-service-utils#343

Signed-off-by: Martin Malina <[email protected]>
mmalina added a commit to konflux-ci/release-service-catalog that referenced this pull request Dec 17, 2024
The new image contains a fix to avoid failing on invalid
purl strings.

See this related PR:
konflux-ci/release-service-utils#343

Signed-off-by: Martin Malina <[email protected]>
midnightercz pushed a commit to midnightercz/release-service-catalog that referenced this pull request Jan 3, 2025
The new image contains a fix to avoid failing on invalid
purl strings.

See this related PR:
konflux-ci/release-service-utils#343

Signed-off-by: Martin Malina <[email protected]>
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.

2 participants