Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 23814 invoked from network); 23 Aug 2010 09:41:58 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Aug 2010 09:41:58 -0000 Received: (qmail 18195 invoked by uid 500); 23 Aug 2010 09:41:58 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 18089 invoked by uid 500); 23 Aug 2010 09:41:56 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 18081 invoked by uid 99); 23 Aug 2010 09:41:55 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Aug 2010 09:41:55 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Aug 2010 09:41:38 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o7N9fGtD004081 for ; Mon, 23 Aug 2010 09:41:16 GMT Message-ID: <1546108.502961282556476704.JavaMail.jira@thor> Date: Mon, 23 Aug 2010 05:41:16 -0400 (EDT) From: "Oliver Deakin (JIRA)" To: commits@harmony.apache.org Subject: [jira] Resolved: (HARMONY-6631) [jdktools][keytool] All interactive input is truncated by one character on linux In-Reply-To: <18637246.467351282300756324.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-6631?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Oliver Deakin resolved HARMONY-6631. ------------------------------------ Fix Version/s: 6.0M3 5.0M15 Resolution: Fixed > [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 > Fix For: 6.0M3, 5.0M15 > > 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.