-
Notifications
You must be signed in to change notification settings - Fork 173
8309841: Jarsigner should print a warning if an entry is removed #635
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
Conversation
|
👋 Welcome back rmarchenko! A progress list of the required criteria for merging this PR into |
|
@wkia This change now passes all automated pre-integration checks. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been no new commits pushed to the As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@gnu-andrew) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
|
This backport pull request has now been updated with issue from the original commit. |
gnu-andrew
left a comment
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.
Patch mostly looks good, but I think we should backport JDK-8240235 first in its own PR. It is little more than the copyEntry method you've imported here, but also fixes other cases in JarUtils.java where it should also be used.
Also, should java.nio.file.StandardCopyOption be imported in JarUtils.java? I see the import being added but no reference to it added in the code.
Ok, if it's needed. I will do this.
There is the line 297: |
|
@gnu-andrew BTW JDK-8240235 modifies a line in |
I think it would be good to fix the existing bug in
Ah, thanks. I now see why I was confused here. The |
I was just looking at the same bug with respect to where the import statement came from in 11u. I think 8211171 might be useful for 8u, but it's a bit involved to require for this change, as it updates numerous tests which use |
Incidentally, the main reason for 8211171 was that there were two |
|
@wkia this pull request can not be integrated into git checkout b8309841
git fetch https://git.openjdk.org/jdk8u-dev.git pr/640
git merge FETCH_HEAD
# resolve conflicts and follow the instructions given by git merge
git commit -m "Merge pr/640"
git push |
|
@wkia Please do not rebase or force-push to an active PR as it invalidates existing review comments. Note for future reference, the bots always squash all changes into a single commit automatically as part of the integration. See OpenJDK Developers’ Guide for more information. |
gnu-andrew
left a comment
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 backporting JDK-8240235 and updating this patch on top of it. The merged version looks good to go.
|
|
|
/approval request I'd like to backport this to 8u-dev. We need this fix in jdk8, as it has this issue with jarsigner. Original patch does not apply cleanly to jdk8, some minor conflicts resolved, files moved to appropriate locations, tests adapted. New tests successfully ran locally on Linux, x86_64. |
|
/approve yes |
|
@gnu-andrew |
|
/integrate |
|
/sponsor |
|
Going to push as commit b256b1a. |
|
@gnu-andrew @wkia Pushed as commit b256b1a. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
This is backport of "8309841: Jarsigner should print a warning if an entry is removed"
Original patch does not apply cleanly to jdk8:
jdk/src/share/classes/sun/security/tools/jarsigner/Main.javaat line 1196in tests:
ed25519algorithm was replaced withRSAinRemovedFiles.javaJarEntry copyEntry()procedure was manually added toJarUtils.javato makeJarUtilsTestworking.Path.of,Files.writeString, package names, and arrays processing as well.We need this fix in jdk8, as all versions have this issue with jarsigner.
New tests successfully ran locally on Linux, x86_64.
Progress
Issues
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk8u-dev.git pull/635/head:pull/635$ git checkout pull/635Update a local copy of the PR:
$ git checkout pull/635$ git pull https://git.openjdk.org/jdk8u-dev.git pull/635/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 635View PR using the GUI difftool:
$ git pr show -t 635Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk8u-dev/pull/635.diff
Using Webrev
Link to Webrev Comment