[
https://issues.apache.org/jira/browse/HADOOP-8168?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13403849#comment-13403849
]
Hudson commented on HADOOP-8168:
--------------------------------
Integrated in Hadoop-Hdfs-trunk #1091 (See
[https://builds.apache.org/job/Hadoop-Hdfs-trunk/1091/])
HADOOP-8168. empty-string owners or groups causes
{{MissingFormatWidthException}} in o.a.h.fs.shell.Ls.ProcessPath() (ekoontz via
tucu) (Revision 1355085)
Result = FAILURE
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