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(java): improve identification for org.eclipse.platform artifacts #2349

Merged
merged 1 commit into from
Nov 30, 2023

Conversation

westonsteimel
Copy link
Contributor

@westonsteimel westonsteimel commented Nov 22, 2023

Provides a mechanism to not trim the java artifact name for cases where we know that is unlikely to be correct, and adds the relevant groupid mappings for org.eclipse.platform

Fixes #2314

@westonsteimel westonsteimel force-pushed the improve-eclipse-platform-java-artifact-identification branch from 5e7adef to 9594820 Compare November 22, 2023 13:13
Copy link
Contributor

@coheigea coheigea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not just eclipse that is an exception, but some other places I found are:

  • pkg:maven/org.eclipse.persistence.javax.persistence.osgi.Activator/[email protected] (Syft uses "persistence" instead of "javax.persistence")
  • pkg:maven/com.ibm.icu/[email protected] (icu instead of com.ibm.icu)

In both cases, the Bundle-SymbolicName is correct, maybe instead of having an exception for eclipse it could check if Bundle-SymbolicName is present and if it matches with the filename first?

@westonsteimel westonsteimel force-pushed the improve-eclipse-platform-java-artifact-identification branch from 9594820 to 79e4b75 Compare November 30, 2023 20:44
@westonsteimel westonsteimel marked this pull request as ready for review November 30, 2023 20:55
@spiffcs spiffcs merged commit 5d42a34 into main Nov 30, 2023
10 checks passed
@spiffcs spiffcs deleted the improve-eclipse-platform-java-artifact-identification branch November 30, 2023 21:02
@westonsteimel westonsteimel added the bug Something isn't working label Nov 30, 2023
spiffcs added a commit to coheigea/syft that referenced this pull request Dec 5, 2023
* main: (40 commits)
  chore(deps): bump anchore/sbom-action from 0.15.0 to 0.15.1 (anchore#2392)
  Retrieve remote licenses using pom.properties when there is no pom.xml (anchore#2315)
  fix(java): improve identification for org.apache.tapestry artifacts (anchore#2384)
  fix(java): improve identification for io.ratpack artifacts (anchore#2379)
  fix(java): improve identification for org.apache.cassandra artifacts (anchore#2386)
  fix(java): improve identification for org.neo4j.procedure artifacts (anchore#2388)
  fix: bump fangs for ptr summarize fix (anchore#2387)
  fix(java): improve identification for org.elasticsearch artifacts (anchore#2383)
  fix(java): improve identification for org.apache.geode artifacts (anchore#2382)
  fix(java): improve identification for org.apache.tomcat.embed artifacts (anchore#2381)
  fix(java): improve identification for io.projectreactor.netty artifacts (anchore#2378)
  fix(java): improve identification for org.eclipse.platform artifacts (anchore#2349)
  Generalize UI events for cataloging tasks (anchore#2369)
  chore(deps): update tools to latest versions (anchore#2376)
  chore(deps): bump github.com/google/go-containerregistry (anchore#2377)
  chore: fix tests failing due to Mac Rosetta cache (anchore#2374)
  fix: improve dotnet portable executable identification (anchore#2133)
  fix file metadata cataloger to use resolved locations (anchore#2370)
  fix: logging level for parsing potential PE files (anchore#2367)
  only remove breaking-change label when there are schema changes (anchore#2371)
  ...

Signed-off-by: Christopher Phillips <[email protected]>
GijsCalis pushed a commit to GijsCalis/syft that referenced this pull request Feb 19, 2024
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 this pull request may close these issues.

fix detecting the name of the eclipse OSGi artifact
4 participants