Harmony
  1. Harmony
  2. HARMONY-6631

[jdktools][keytool] All interactive input is truncated by one character on linux

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.0M3, 5.0M15
    • Component/s: None
    • Labels:
      None
    • Environment:
      Linux
    • Patch Info:
      Patch Available
    • Estimated Complexity:
      Novice

      Description

      On linux, running the keytool so that it prompts for a password and entering a 6 character password will reprompt with the message "The password must be at least 6 characters". Similarly any other interactive input is truncated by a character.
      The problem is that is assumes the newline terminator is 2 characters, which it is on windows, but not on other platforms.

      The problem can be recreated by running:
      target/hdk/jdk/jre/bin/keytool -genkey

      Enter keystore password: 12345
      The password must be at least 6 characters

      Also this password length checking is not performed when running the tool non-interactively, e.g. running
      target/hdk/jdk/jre/bin/keytool -genkey -keypass 1234 -storepass 1234
      doesn't throw any password length errors

      1. 6631.patch
        4 kB
        Catherine Hope

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Oliver Deakin
            Reporter:
            Catherine Hope
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development