harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oliver Deakin (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-6631) [jdktools][keytool] All interactive input is truncated by one character on linux
Date Mon, 23 Aug 2010 09:39:16 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-6631?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12901328#action_12901328

Oliver Deakin commented on HARMONY-6631:

Thanks Cath - I applied the patch at repo revision r988045 with a couple of modifications:
 - I removed the usage of SystemUtils.getOS() and replaced it with a check on the File.separator
char. I did this to avoid the need to add a new dependency on the misc module from jretools
(File is already used). Please let me know if you are not happy with this change and we can
discuss it.
 - I applied the fixes to ArgumentsParser in both the jretools and jdktools modules since
the code is duplicated in both places at the moment. I thought it better to make sure they
don't get out of sync.

Please check that the patches were applied as expected, that the issue is fixed for you and
that you agree with the above modifications.

> [jdktools][keytool] All interactive input is truncated by one character on linux
> --------------------------------------------------------------------------------
>                 Key: HARMONY-6631
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6631
>             Project: Harmony
>          Issue Type: Bug
>         Environment: Linux
>            Reporter: Catherine Hope
>            Assignee: Oliver Deakin
>            Priority: Minor
>         Attachments: 6631.patch
> 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

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message