Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 02567D634 for ; Thu, 28 Jun 2012 18:16:48 +0000 (UTC) Received: (qmail 80674 invoked by uid 500); 28 Jun 2012 18:16:47 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 80625 invoked by uid 500); 28 Jun 2012 18:16:47 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 80571 invoked by uid 99); 28 Jun 2012 18:16:47 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Jun 2012 18:16:47 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 17A01142854 for ; Thu, 28 Jun 2012 18:16:47 +0000 (UTC) Date: Thu, 28 Jun 2012 18:16:47 +0000 (UTC) From: "Hudson (JIRA)" To: common-issues@hadoop.apache.org Message-ID: <296191075.68072.1340907407098.JavaMail.jiratomcat@issues-vm> In-Reply-To: <1306223994.8755.1331663921448.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HADOOP-8168) empty-string owners or groups causes {{MissingFormatWidthException}} in o.a.h.fs.shell.Ls.ProcessPath() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HADOOP-8168?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13403325#comment-13403325 ] Hudson commented on HADOOP-8168: -------------------------------- Integrated in Hadoop-Hdfs-trunk-Commit #2471 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk-Commit/2471/]) HADOOP-8168. empty-string owners or groups causes {{MissingFormatWidthException}} in o.a.h.fs.shell.Ls.ProcessPath() (ekoontz via tucu) (Revision 1355085) Result = SUCCESS tucu : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1355085 Files : * /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt * /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Ls.java > empty-string owners or groups causes {{MissingFormatWidthException}} in o.a.h.fs.shell.Ls.ProcessPath() > ------------------------------------------------------------------------------------------------------- > > Key: HADOOP-8168 > URL: https://issues.apache.org/jira/browse/HADOOP-8168 > Project: Hadoop Common > Issue Type: Bug > Components: fs > Affects Versions: 0.23.1, 0.24.0 > Reporter: Eugene Koontz > Assignee: Eugene Koontz > Fix For: 2.0.1-alpha > > Attachments: HADOOP-8168.patch, HADOOP-8496.patch > > > In {{adjustColumnWidths()}}, we set the member variable {{lineFormat}}, which is used by {{ProcessPath()}} to print directory entries. Owners and groups are formatted using the formatting conversion {{%-Xs}}, where X is the max length of the owner or group. However, when trying this with an S3 URL, I found that the owner and group were empty (""). This caused X to be 0, which means that the formatting conversion is set to {{%-0s}}. This caused a {{MissingFormatWidthException}} to be thrown when the formatting string was used in {{ProcessPath()}}. > Formatting conversions are described here: > http://docs.oracle.com/javase/1.6.0/docs/api/java/util/Formatter.html#intFlags > The specific exception thrown (a subtype of {{IllegalFormatException}}) is described here: > http://docs.oracle.com/javase/1.6.0/docs/api/java/util/MissingFormatWidthException.html -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira