-
Notifications
You must be signed in to change notification settings - Fork 172
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 |
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/testlibrary
org.junit.jupiter.api.BeforeAll
⟶org.junit.BeforeClass
org.junit.jupiter.api.BeforeEach
⟶org.junit.Before
org.junit.jupiter.api.Test
⟶org.junit.Test
java.nio.file.Path.of()
⟶java.nio.file.Paths.get()
@BeforeClass
,@Before
and@Test
methods must be publicvar
Arrays.equals(a, start, end, b, 0, b.length)
⟶Arrays.equals(Arrays.copyOfRange(a, start, end), b)
(Arrays::equals
with 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.1
andjdk/src/solaris/doc/sun/man/man1/ja/jarsigner.1
(identical), and leftdk/src/bsd/doc/man/ja/jarsigner.1
untouched (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.java
is not present in 8u, JDK-8353330 was not included.Testing
tier1
run from the GitHub actions (similar results as the currentmaster
run), I ran a regression using the following categories and individual tests:jdk/test/com/sun/jarsigner
jdk/test/java/security/SignedJar
jdk/test/java/util/jar
jdk/test/sun/security/pkcs/pkcs7
jdk/test/sun/security/tools/jarsigner
VerifyJarEntryName.java
, created for this issuejdk/test/sun/security/tools/keytool
No regressions were found against the current
master
branch (9a4bc2d).Progress
Issues
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk8u-dev.git pull/699/head:pull/699
$ git checkout pull/699
Update a local copy of the PR:
$ git checkout pull/699
$ git pull https://git.openjdk.org/jdk8u-dev.git pull/699/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 699
View PR using the GUI difftool:
$ git pr show -t 699
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk8u-dev/pull/699.diff
Using Webrev
Link to Webrev Comment