-
Notifications
You must be signed in to change notification settings - Fork 171
8339280: jarsigner -verify performs cross-checking between CEN and LOC #699
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: master
Are you sure you want to change the base?
8339280: jarsigner -verify performs cross-checking between CEN and LOC #699
Conversation
|
👋 Welcome back fferrari! A progress list of the required criteria for merging this PR into |
|
❗ This change is not yet ready to be integrated. |
|
This backport pull request has now been updated with issue from the original commit. |
|
/issue add 8353299 |
|
/issue add 8367782 |
Webrevs
|
|
@franferrax |
|
@franferrax |
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.
LGTM
CI failures look unrelated
All related jarsigner tests passed
Hi, this is a backport of openjdk/jdk11u-dev#3098. The backport isn't clean, because of the following:
Main.java, trivial context differences and code that needs adjustment from 11u to 8u:java.nio.file.Path.of()⟶java.nio.file.Paths.get()InputStream::transferTo(OutputStream.nullOutputStream())⟶ original code before a review suggestionVerifyJarEntryName.java), code that needs adjustment from 11u to 8u:@library /test/lib⟶@library /lib/testlibraryorg.junit.jupiter.api.BeforeAll⟶org.junit.BeforeClassorg.junit.jupiter.api.BeforeEach⟶org.junit.Beforeorg.junit.jupiter.api.Test⟶org.junit.Testjava.nio.file.Path.of()⟶java.nio.file.Paths.get()@BeforeClass,@Beforeand@Testmethods must be publicvarArrays.equals(a, start, end, b, 0, b.length)⟶Arrays.equals(Arrays.copyOfRange(a, start, end), b)(Arrays::equalswith offsets not present in 8u)NOTE: for the Japanese manpages translation approach, please refer to 8339280: jarsigner -verify performs cross-checking between CEN and LOC jdk11u-dev#3098I updatedjdk/src/linux/doc/man/ja/jarsigner.1andjdk/src/solaris/doc/sun/man/man1/ja/jarsigner.1(identical), and leftdk/src/bsd/doc/man/ja/jarsigner.1untouched (doesn't have any content besides the headers)Related issues ("relates to" Jira issue links)
JDK-8353299 (openjdk/jdk@acd4da4) and JDK-8367782 (openjdk/jdk@1b9a116) were also included as part of this backport. They are test-only changes that improve the reliability and coverage of
VerifyJarEntryName.java.Since
test/hotspot/jtreg/runtime/appcds/SignedJar.javais not present in 8u, JDK-8353330 was not included.Testing
tier1run from the GitHub actions (similar results as the currentmasterrun), I ran a regression using the following categories and individual tests:jdk/test/com/sun/jarsignerjdk/test/java/security/SignedJarjdk/test/java/util/jarjdk/test/sun/security/pkcs/pkcs7jdk/test/sun/security/tools/jarsignerVerifyJarEntryName.java, created for this issuejdk/test/sun/security/tools/keytoolNo regressions were found against the current
masterbranch (9a4bc2d).Progress
Issues
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk8u-dev.git pull/699/head:pull/699$ git checkout pull/699Update a local copy of the PR:
$ git checkout pull/699$ git pull https://git.openjdk.org/jdk8u-dev.git pull/699/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 699View PR using the GUI difftool:
$ git pr show -t 699Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk8u-dev/pull/699.diff
Using Webrev
Link to Webrev Comment