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

Pin bcel version to 6.6.1 #270

Merged
merged 1 commit into from
Jan 20, 2023
Merged

Pin bcel version to 6.6.1 #270

merged 1 commit into from
Jan 20, 2023

Conversation

Tjofil
Copy link
Contributor

@Tjofil Tjofil commented Jan 14, 2023

Signed-off-by: Filip Drobnjakovic [email protected]

Is your feature request related to a problem? Please provide an existing Issue # , or describe.
#264

Describe the solution you are proposing
According to spotbugs/spotbugs#2251 this bcel vulnerability doesn't affect SpotBugs. As there's no tentative date for a new SpotBugs release that would include the version bump from their side and as confirmed by some users from the mentioned issue, pinning the dependency by ourselves gets rid of the warning and doesn't break SpotBugs. As bcel is transitive dependency of a plugin, it has to be done with iterative dependency substitution.

Describe alternatives you've considered
Alternative would be to completely ignore warning as there's no real threat from it and wait for new SpotBugs version or to find and integrate SpotBugs alternatives which would be more complicated and wouldn't bring much benefit.

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Filip Drobnjakovic <[email protected]>
@Tjofil Tjofil requested a review from a team January 14, 2023 09:03
@kaushalmahi12
Copy link
Contributor

Please do ensure that this dependency is also not coming from any other direct dependency. If that is the case the solution might not work

@Tjofil
Copy link
Contributor Author

Tjofil commented Jan 19, 2023

@kaushalmahi12

That is easy to confirm by generating gradle dependency tree ('./gradlew dependencies).

Also I believe this solution covers both plugin's and any other configuration's transitive dependencies so it works in general case (it's an overkill when not dealing with plugins and then we use other constructs like 'force'). This is also confirmed by looking at checks (Mend check confirmes that vulnerability has been dealt with).

@kiranprakash154
Copy link
Contributor

kiranprakash154 commented Jan 20, 2023

Thanks for the fix @Tjofil !
Merging this.
(cc'ing @khushbr)

@kiranprakash154 kiranprakash154 merged commit 7c52078 into opensearch-project:main Jan 20, 2023
@kiranprakash154
Copy link
Contributor

Hi @Tjofil,
can you backport this to older versions of OS ?
(cc: @kkhatua)

Tjofil added a commit to Tjofil/performance-analyzer-rca that referenced this pull request Jan 24, 2023
Signed-off-by: Filip Drobnjakovic <[email protected]>

Signed-off-by: Filip Drobnjakovic <[email protected]>
khushbr pushed a commit that referenced this pull request Jan 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants