-
Notifications
You must be signed in to change notification settings - Fork 249
8339280: jarsigner -verify performs cross-checking between CEN and LOC #3098
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 #3098
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 |
@franferrax |
@franferrax |
Webrevs
|
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
|
/approval request JDK-8339280 enhances the jarsigner utility with cross-validation of JAR entries. Subsequent test updates (JDK-8353299 & JDK-8367782) are included for better reliability and coverage. Please find details about the testing in the pull request description. |
@franferrax |
Hi, this is a backport of openjdk/jdk17u-dev#3954. The backport is almost clean, except for:
Main.java
,Resources.java
,Resources_ja.java
, andResources_zh_CN.java
jarsigner.1
manpages have a slightly different format (manually adjusted to match the 11u format)There also exist a Japanese version of thejarsigner.1
manpages, they were updated using an LLM translation (giving as context the translations from the resources files, where there is a similar sentence), if any Japanese speaker is reading this, please check it:I updatedsrc/linux/doc/man/ja/jarsigner.1
andsrc/solaris/doc/sun/man/man1/ja/jarsigner.1
(identical), and leftsrc/bsd/doc/man/ja/jarsigner.1
untouched (doesn't have any content besides the headers)Tip: these files are encoded inEUC-JP
, to open them in VIM usevim -c "e ++enc=EUC-JP" .../ja/jarsigner.1
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 failing after the backport, JDK-8353330 was not included.Testing
tier1
run from the GitHub actions (all passed), I ran a regression using the following categories and individual tests:test/hotspot/jtreg/runtime/appcds/SignedJar.java
test/jdk/java/security/SignedJar
test/jdk/java/util/jar
test/jdk/jdk/security/jarsigner
test/jdk/sun/security/pkcs/pkcs7
test/jdk/sun/security/tools/jarsigner
VerifyJarEntryName.java
, created for this issuetest/jdk/sun/security/tools/keytool
No regressions were found against the current
master
branch (465fb7d).Progress
Warning
8339280: jarsigner -verify performs cross-checking between CEN and LOC
Issues
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk11u-dev.git pull/3098/head:pull/3098
$ git checkout pull/3098
Update a local copy of the PR:
$ git checkout pull/3098
$ git pull https://git.openjdk.org/jdk11u-dev.git pull/3098/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 3098
View PR using the GUI difftool:
$ git pr show -t 3098
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk11u-dev/pull/3098.diff
Using Webrev
Link to Webrev Comment