-
Bug
-
Resolution: Duplicate
-
P4
-
8u20
-
x86_64
-
windows_7
FULL PRODUCT VERSION :
java version "1.8.0_20"
Java(TM) SE Runtime Environment (build 1.8.0_20-b26)
Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 6.1.7601]
A DESCRIPTION OF THE PROBLEM :
Running the Java keytool utility with the -importpassword option fails when prompting to confirm the new password to be stored. Note, this prompt is NOT the same as the confirmation prompt for the keystore's own password. See steps to reproduce.
ADDITIONAL REGRESSION INFORMATION:
Error occurs on 8u20:
java version "1.8.0_20"
Java(TM) SE Runtime Environment (build 1.8.0_20-b26)
Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode)
Same behavior is observed on the JDK 8.0 GA release:
java version "1.8.0"
Java(TM) SE Runtime Environment (build 1.8.0-b132)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode)
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Run the keytool in -importpassword mode, for any alias:
C:\JAVA\latest8\bin> keytool -importpassword -alias foo -keystore keystore.tmp
2. Use the same password (at least 6 chars) for the created keystore both times when prompted:
Enter keystore password:
Re-enter new password:
3. Enter a password that is to be stored for the alias specified on the command line:
Enter the password to be stored:
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
A prompt requesting re-entry (confirmation) of the password entered in step 3.
ACTUAL -
keytool error: java.util.MissingResourceException
ERROR MESSAGES/STACK TRACES THAT OCCUR :
keytool error: java.util.MissingResourceException: Can't find resource for bundle sun.security.tools.keytool.Resources, key Re.enter.password.
REPRODUCIBILITY :
This bug can be reproduced always.
CUSTOMER SUBMITTED WORKAROUND :
Write a new Java program that invokes the necessary Keystore API methods directly instead of using the provided binary tool provided with the Java distribution.
java version "1.8.0_20"
Java(TM) SE Runtime Environment (build 1.8.0_20-b26)
Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 6.1.7601]
A DESCRIPTION OF THE PROBLEM :
Running the Java keytool utility with the -importpassword option fails when prompting to confirm the new password to be stored. Note, this prompt is NOT the same as the confirmation prompt for the keystore's own password. See steps to reproduce.
ADDITIONAL REGRESSION INFORMATION:
Error occurs on 8u20:
java version "1.8.0_20"
Java(TM) SE Runtime Environment (build 1.8.0_20-b26)
Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode)
Same behavior is observed on the JDK 8.0 GA release:
java version "1.8.0"
Java(TM) SE Runtime Environment (build 1.8.0-b132)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode)
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Run the keytool in -importpassword mode, for any alias:
C:\JAVA\latest8\bin> keytool -importpassword -alias foo -keystore keystore.tmp
2. Use the same password (at least 6 chars) for the created keystore both times when prompted:
Enter keystore password:
Re-enter new password:
3. Enter a password that is to be stored for the alias specified on the command line:
Enter the password to be stored:
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
A prompt requesting re-entry (confirmation) of the password entered in step 3.
ACTUAL -
keytool error: java.util.MissingResourceException
ERROR MESSAGES/STACK TRACES THAT OCCUR :
keytool error: java.util.MissingResourceException: Can't find resource for bundle sun.security.tools.keytool.Resources, key Re.enter.password.
REPRODUCIBILITY :
This bug can be reproduced always.
CUSTOMER SUBMITTED WORKAROUND :
Write a new Java program that invokes the necessary Keystore API methods directly instead of using the provided binary tool provided with the Java distribution.
- duplicates
-
JDK-8059462 Typo in keytool resource file
- Closed