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

purl generation broken for kafka jars #2385

Closed
westonsteimel opened this issue Dec 1, 2023 · 0 comments · Fixed by #2573
Closed

purl generation broken for kafka jars #2385

westonsteimel opened this issue Dec 1, 2023 · 0 comments · Fixed by #2573
Labels
bug Something isn't working

Comments

@westonsteimel
Copy link
Contributor

What happened:

Currently syft will generate a purl of pkg:maven/13/13@3.2.2 for the kafka jar from https://repo1.maven.org/maven2/org/apache/kafka/kafka_2.13/3.2.2/kafka_2.13-3.2.2.jar. I'm guessing it is some confusion with the archive filename parser and a name like kafka_2.13-3.2.2

What you expected to happen:

The correct purl for this artifact is pkg:maven/org.apache.kafka/kafka_2.13@3.2.2

Steps to reproduce the issue:

Download https://repo1.maven.org/maven2/org/apache/kafka/kafka_2.13/3.2.2/kafka_2.13-3.2.2.jar locally

syft ~/Downloads/kafka_2.13-3.2.2.jar -o json | jq . | fgrep purl
 ✔ Indexed file system                                                                                                                                                         /Users/weston/Downloads
 ✔ Cataloged packages              [1 packages]
      "purl": "pkg:maven/13/13@3.2.2",

Anything else we need to know?:

Environment:

  • Output of syft version:
  • OS (e.g: cat /etc/os-release or similar):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant