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

Override conflicting dependencies with the finally used ones. #7028

Merged
merged 1 commit into from
Feb 16, 2024

Conversation

sdedic
Copy link
Member

@sdedic sdedic commented Feb 5, 2024

There's a bug in Maven dependency reporter. In case of conflicting artifacts, the next children were taken from the real dependency, but the node itself was still added to the tree.

So in case that 4rd party dependency gson:gson:jar:2.8.6 conflict with project-mandated 2.10.1, 2.8.6 is actually used by project. Maven reporter implementation traverses below using children from 2.10.1, but gson:jar:2.8.6 was still included in the tree.

This may cause false vulnerability reports in ADM.

@sdedic sdedic added Maven [ci] enable "build tools" tests VSCode Extension [ci] enable VSCode Extension tests enterprise [ci] enable enterprise job labels Feb 5, 2024
@sdedic sdedic added this to the NB22 milestone Feb 5, 2024
@sdedic sdedic self-assigned this Feb 5, 2024
@sdedic sdedic merged commit 34deb25 into apache:master Feb 16, 2024
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enterprise [ci] enable enterprise job Maven [ci] enable "build tools" tests VSCode Extension [ci] enable VSCode Extension tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants