Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8060184

MissingResourceException for key "Re.enter.password" when running keytool

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P4
    • 8u40
    • 8u20
    • security-libs

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              vinnie Vincent Ryan
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: