Repository navigation
Conversation
|
👋 Welcome back fitzsim! 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. |
|
@fitzsim This pull request has been inactive for more than 8 weeks and will be automatically closed if another 8 weeks passes without any activity. To avoid this, simply issue a |
|
/touch |
|
@fitzsim The pull request is being re-evaluated and the inactivity timeout has been reset. |
|
This one should now be rebased on current 11u-dev to remove the commit that has been pushed. |
…iped using | grep Backport-of: a7a3a660e33fabc025ebe887f5605741be9ca8c3
This gives sun.security.util.Password access to the password console's charset field.
Remove the "Copy" hyperlinks and instead just instruct the user to copy each command manually. Add spaces where necessary.
5146aa5 to
1548c15
Compare
Done. I marked this as ready-for-review. |
|
A backport of 8367348 was started (#3147) but didn't make any progress when I identified required dependencies. I now have a dependency chain of backports ending in that one which I just need to test (had X11 permission errors in trying last week that hopefully Xephyr will resolve). We should then be able to include those changes as is. Similarly, I'll look at what is required to include the other test. It is generally preferable to keep the test code as is and bring in dependencies if possible. Also the 8367348 update already came up as a parity backport. |
|
@fitzsim This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply issue a |
|
/keepalive |
|
@fitzsim The pull request is being re-evaluated and the inactivity timeout has been reset. |
|
@fitzsim This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply issue a |
|
/touch |
Do you want to share some of these and I can try to test them?
OK, I'll try to take a look at what's required there. |
|
@fitzsim The pull request is being re-evaluated and the inactivity timeout has been reset. |
This pull request backports:
8354469: Keytool exposes the password in plain text when command is piped using | grepIt depends on pull request #3232 which backports:
8366261: Provide utility methods for sun.security.util.PasswordStarting from the backport of 8354469 to 17, I made the following adjustments:
Console.java:
Password.java:
Adjust copyright year
17 renamed "misc" to "access" in "import jdk.internal.access.SharedSecrets;" as part of:
8211122: Reduce the number of internal classes made accessible to jdk.unsupported
so skip that.
17 then removed "import jdk.internal.access.SharedSecrets;" and called "System.console().charset()" directly instead of via SharedSecrets as part of:
8264208: Console charset API
which was never backported, so skip that and continue using SharedSecrets.
17 re-added "import jdk.internal.access.SharedSecrets;" as part of:
8354469: Keytool exposes the password in plain text when command is piped using | grep
to be able to call passwordConsole and readPasswordNoNewLine, so again, I just keep "import jdk.internal.misc.SharedSecrets;" constant in 11
11 does not have Console.charset, so modify the JavaIOAccess interface to accept a Console argument which returns the value of the passed console's private charset (
cs) field.SetInPassword.java:
EchoPassword.java:
Change to use traditional multiline-string syntax since 11 does not support
"""multiline strings; update message whitespaceRemove support for the convenience "Copy Command" hyperlinks since hyperlinkListener support is not available in 11; update message accordingly
I did briefly try to maintain these links and status label, but it would have required first backporting:
8367348: Enhance PassFailJFrame to support links in HTMLwhich did not apply cleanly to 11, so I decided to simplify the test instead.
Remove the now-unused status label
Usages.java:
that file does not exist in 11
The new
SetInPassword.javatest passes and with the modifications herein, theEchoPassword.javaalso passes.Progress
Issue
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk11u-dev.git pull/3233/head:pull/3233$ git checkout pull/3233Update a local copy of the PR:
$ git checkout pull/3233$ git pull https://git.openjdk.org/jdk11u-dev.git pull/3233/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 3233View PR using the GUI difftool:
$ git pr show -t 3233Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk11u-dev/pull/3233.diff
Using Webrev
Link to Webrev Comment