Skip to content

java: include inner JAR paths in PackageDB #1503

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

RTann
Copy link
Contributor

@RTann RTann commented Mar 25, 2025

The PackageDB for "inner" JAR files only show the name of the top-level JAR, so it's not clear which dependency must be updated. This updates the PackageDB to include the path of the inner JAR.

An example follows: we'll now show maven:usr/share/jenkins/jenkins.war:WEB-INF/lib/commons-fileupload-1.4.jar instead of just maven:usr/share/jenkins/jenkins.war

@RTann RTann force-pushed the java-fat-jar-packagedb branch from 3f77dd8 to 34bf4b0 Compare March 25, 2025 21:34
@RTann RTann force-pushed the java-fat-jar-packagedb branch 3 times, most recently from 1920b11 to c22d175 Compare March 25, 2025 22:53
@RTann RTann force-pushed the java-fat-jar-packagedb branch 7 times, most recently from 6b98f23 to 8f4aade Compare April 10, 2025 18:37
@@ -104,7 +104,7 @@ func (tc ScannerTestcase) RunSubset(ctx context.Context, n int) func(*testing.T)
}

if !cmp.Equal(p, g) {
t.Error(cmp.Diff(p, g))
t.Errorf("%v-%v-%v: %v", p.Name, p.RepositoryHint, p.Filepath, cmp.Diff(p, g))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This helped a lot in cases where the package names matched. I was going to delete this, but it may be helpful again someday

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't bump the version, as it was already bumped in #1467 and there have not been any Claircore releases since

@RTann RTann marked this pull request as ready for review April 10, 2025 18:46
@RTann RTann requested a review from a team as a code owner April 10, 2025 18:46
Signed-off-by: RTann <[email protected]>

rh-pre-commit.version: 2.3.2
rh-pre-commit.check-secrets: ENABLED
@RTann RTann force-pushed the java-fat-jar-packagedb branch from 8f4aade to 3ade694 Compare April 15, 2025 00:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant