CycloneDX / CycloneDX/cyclonedx-linux-generator

compoent purl is not download url

Open
#63 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
56
Forks
13
PR merge metrics
No merged PRs in 30d

Description

in `RedHatSBomGenerator.java`, the method to get component purl is by parsing cmd output from `yumdownloader --urls "softwarename"`, which returns http url to download the rpm, but that's not purl.
purl definition is here: https://github.com/package-url/purl-spec

Furthermore, `yumdownloader --urls` seems to return availabe package download url rather than installed package download url, so it's not accurate.

Contributor guide

Open the contributing guide

Research direction

Read RedHatSBomGenerator.java and trace the method that parses yumdownloader --urls output. Compare the returned download URL and package source with the package-url specification, and determine how installed-package information is available. Done means component purl values follow the specification and do not incorrectly use an available package download URL.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, linux
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.