-
Notifications
You must be signed in to change notification settings - Fork 41.5k
Signed jar verification fails when nested in an uber war running on an Oracle JVM #47284
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
base: main
Are you sure you want to change the base?
Conversation
d8bacf7
to
f398a1b
Compare
Thanks for the PR. Could you please add some tests on the Gradle side, similar to those that were added in 33c5e12. It may be possible to move |
f398a1b
to
5dff5c2
Compare
Done. Also deleted field |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the updates. I think there's one more tweak that could be made.
} | ||
|
||
protected void signed(String bundling) throws IOException { | ||
assertThat(this.gradleBuild.build(bundling).task(":" + bundling).getOutcome()).isEqualTo(TaskOutcome.SUCCESS); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use this.taskName
here instead of bundling
and further simplify the sub-classes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Deleted tests in sub-classes.
5dff5c2
to
40533cb
Compare
This commit extends 33c5e12 to uber War. Fixes spring-projectsgh-28837 Signed-off-by: Dmitrii Karagodin <4319788@gmail.com>
40533cb
to
c21d083
Compare
Fixed merge conflicts introduced by bc46bb2. |
There is an issue with spring boot app as fat Jar that runs on Oracle JVM and uses third-party crypto libraries.
#28837
The hacked solution committed 33c5e12 is relevant to this day because
ZipFile.getManifestName(onlyIfSignatureRelatedFiles)
stays private. But this hacked solution only works for uber Jar.In this PR I extend this hack to uber War.