You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Eugene Koontz (Created) (JIRA)" <ji...@apache.org> on 2012/03/13 19:38:41 UTC

[jira] [Created] (HADOOP-8168) empty-string owners or groups causes {{MissingFormatWidthExeption}} in o.a.h.fs.shell.Ls.ProcessPath()

empty-string owners or groups causes {{MissingFormatWidthExeption}} 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


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.5.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.5.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

        

[jira] [Updated] (HADOOP-8168) empty-string owners or groups causes {{MissingFormatWidthException}} in o.a.h.fs.shell.Ls.ProcessPath()

Posted by "Eugene Koontz (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-8168?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eugene Koontz updated HADOOP-8168:
----------------------------------

    Attachment: HADOOP-8168.patch

Make sure that for {{%-Xs}} formatting conversions, {{X}} is greater than 0.
                
> 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.24.0, 0.23.1
>            Reporter: Eugene Koontz
>         Attachments: HADOOP-8168.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.5.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.5.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

        

[jira] [Assigned] (HADOOP-8168) empty-string owners or groups causes {{MissingFormatWidthException}} in o.a.h.fs.shell.Ls.ProcessPath()

Posted by "Alejandro Abdelnur (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-8168?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alejandro Abdelnur reassigned HADOOP-8168:
------------------------------------------

    Assignee: Eugene Koontz
    
> 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
>         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

        

[jira] [Commented] (HADOOP-8168) empty-string owners or groups causes {{MissingFormatWidthException}} in o.a.h.fs.shell.Ls.ProcessPath()

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8168?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13403922#comment-13403922 ] 

Hudson commented on HADOOP-8168:
--------------------------------

Integrated in Hadoop-Mapreduce-trunk #1124 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk/1124/])
    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

        

[jira] [Commented] (HADOOP-8168) empty-string owners or groups causes {{MissingFormatWidthException}} in o.a.h.fs.shell.Ls.ProcessPath()

Posted by "Daryn Sharp (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8168?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13403265#comment-13403265 ] 

Daryn Sharp commented on HADOOP-8168:
-------------------------------------

+1 looks good to me
                
> 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
>         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

        

[jira] [Updated] (HADOOP-8168) empty-string owners or groups causes {{MissingFormatWidthException}} in o.a.h.fs.shell.Ls.ProcessPath()

Posted by "Alejandro Abdelnur (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-8168?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alejandro Abdelnur updated HADOOP-8168:
---------------------------------------

    Attachment: HADOOP-8496.patch

Eugene, I'm uploading a patch tweaking your patch to Daryn's comments. Hope this is OK with you.

I've tested with local/hdfs/s3 filesystem.
                
> 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
>         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

        

[jira] [Commented] (HADOOP-8168) empty-string owners or groups causes {{MissingFormatWidthException}} in o.a.h.fs.shell.Ls.ProcessPath()

Posted by "Daryn Sharp (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8168?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13229710#comment-13229710 ] 

Daryn Sharp commented on HADOOP-8168:
-------------------------------------

Ignore the -Math.min-. I'm tired.
                
> 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.24.0, 0.23.1
>            Reporter: Eugene Koontz
>         Attachments: HADOOP-8168.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

        

[jira] [Commented] (HADOOP-8168) empty-string owners or groups causes {{MissingFormatWidthException}} in o.a.h.fs.shell.Ls.ProcessPath()

Posted by "Eugene Koontz (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8168?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13235818#comment-13235818 ] 

Eugene Koontz commented on HADOOP-8168:
---------------------------------------

Hi Daryn, Your fix looks a bit cleaner than mine, thanks!
-Eugene
                
> 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.24.0, 0.23.1
>            Reporter: Eugene Koontz
>         Attachments: HADOOP-8168.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

        

[jira] [Commented] (HADOOP-8168) empty-string owners or groups causes {{MissingFormatWidthException}} in o.a.h.fs.shell.Ls.ProcessPath()

Posted by "Daryn Sharp (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8168?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13229614#comment-13229614 ] 

Daryn Sharp commented on HADOOP-8168:
-------------------------------------

I think you meant {{Math.min}}.  Although I'd suggest maybe something like this to avoid spurious whitespace:
{code}
fmt.append((maxOwner > 0) ? "%-" + maxOwner + "s " : "%s");
{code}

                
> 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.24.0, 0.23.1
>            Reporter: Eugene Koontz
>         Attachments: HADOOP-8168.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

        

[jira] [Commented] (HADOOP-8168) empty-string owners or groups causes {{MissingFormatWidthException}} in o.a.h.fs.shell.Ls.ProcessPath()

Posted by "Eugene Koontz (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8168?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13228605#comment-13228605 ] 

Eugene Koontz commented on HADOOP-8168:
---------------------------------------

Note that a similar 0-length check for groups and owners is present in Hadoop 1.0:

https://github.com/apache/hadoop-common/blob/branch-1.0/src/core/org/apache/hadoop/fs/FsShell.java#L645
                
> 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.24.0, 0.23.1
>            Reporter: Eugene Koontz
>         Attachments: HADOOP-8168.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.5.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.5.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

        

[jira] [Commented] (HADOOP-8168) empty-string owners or groups causes {{MissingFormatWidthException}} in o.a.h.fs.shell.Ls.ProcessPath()

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8168?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13403371#comment-13403371 ] 

Hudson commented on HADOOP-8168:
--------------------------------

Integrated in Hadoop-Mapreduce-trunk-Commit #2421 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Commit/2421/])
    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

        

[jira] [Commented] (HADOOP-8168) empty-string owners or groups causes {{MissingFormatWidthException}} in o.a.h.fs.shell.Ls.ProcessPath()

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ 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

        

[jira] [Updated] (HADOOP-8168) empty-string owners or groups causes {{MissingFormatWidthException}} in o.a.h.fs.shell.Ls.ProcessPath()

Posted by "Eugene Koontz (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-8168?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eugene Koontz updated HADOOP-8168:
----------------------------------

    Description: 
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


  was:
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.5.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.5.0/docs/api/java/util/MissingFormatWidthException.html


    
> 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.24.0, 0.23.1
>            Reporter: Eugene Koontz
>         Attachments: HADOOP-8168.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

        

[jira] [Updated] (HADOOP-8168) empty-string owners or groups causes {{MissingFormatWidthException}} in o.a.h.fs.shell.Ls.ProcessPath()

Posted by "Alejandro Abdelnur (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-8168?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alejandro Abdelnur updated HADOOP-8168:
---------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.1-alpha
     Hadoop Flags: Reviewed
           Status: Resolved  (was: Patch Available)

Thanks Eugene. Committed to trunk and branch-2.
                
> 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

        

[jira] [Commented] (HADOOP-8168) empty-string owners or groups causes {{MissingFormatWidthException}} in o.a.h.fs.shell.Ls.ProcessPath()

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ 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

        

[jira] [Commented] (HADOOP-8168) empty-string owners or groups causes {{MissingFormatWidthException}} in o.a.h.fs.shell.Ls.ProcessPath()

Posted by "Hadoop QA (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8168?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13228876#comment-13228876 ] 

Hadoop QA commented on HADOOP-8168:
-----------------------------------

-1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12518214/HADOOP-8168.patch
  against trunk revision .

    +1 @author.  The patch does not contain any @author tags.

    -1 tests included.  The patch doesn't appear to include any new or modified tests.
                        Please justify why no new tests are needed for this patch.
                        Also please list what manual steps were performed to verify this patch.

    +1 javadoc.  The javadoc tool did not generate any warning messages.

    +1 javac.  The applied patch does not increase the total number of javac compiler warnings.

    +1 eclipse:eclipse.  The patch built with eclipse:eclipse.

    +1 findbugs.  The patch does not introduce any new Findbugs (version 1.3.9) warnings.

    +1 release audit.  The applied patch does not increase the total number of release audit warnings.

    -1 core tests.  The patch failed these unit tests:
                  org.apache.hadoop.fs.viewfs.TestViewFsTrash
                  org.apache.hadoop.ipc.TestRPCCallBenchmark

    +1 contrib tests.  The patch passed contrib unit tests.

Test results: https://builds.apache.org/job/PreCommit-HADOOP-Build/707//testReport/
Console output: https://builds.apache.org/job/PreCommit-HADOOP-Build/707//console

This message is automatically generated.
                
> 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.24.0, 0.23.1
>            Reporter: Eugene Koontz
>         Attachments: HADOOP-8168.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

        

[jira] [Commented] (HADOOP-8168) empty-string owners or groups causes {{MissingFormatWidthException}} in o.a.h.fs.shell.Ls.ProcessPath()

Posted by "Eugene Koontz (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8168?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13228609#comment-13228609 ] 

Eugene Koontz commented on HADOOP-8168:
---------------------------------------

Sorry, correct line number is :
 
https://github.com/apache/hadoop-common/blob/branch-1.0/src/core/org/apache/hadoop/fs/FsShell.java#L628
                
> 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.24.0, 0.23.1
>            Reporter: Eugene Koontz
>         Attachments: HADOOP-8168.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.5.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.5.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

        

[jira] [Commented] (HADOOP-8168) empty-string owners or groups causes {{MissingFormatWidthException}} in o.a.h.fs.shell.Ls.ProcessPath()

Posted by "Alejandro Abdelnur (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8168?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13401059#comment-13401059 ] 

Alejandro Abdelnur commented on HADOOP-8168:
--------------------------------------------

Eugene, just noticed you did not update the patch to Daryn's suggestion. Would you mind uploading a new patch?
                
> 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
>         Attachments: HADOOP-8168.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

        

[jira] [Commented] (HADOOP-8168) empty-string owners or groups causes {{MissingFormatWidthException}} in o.a.h.fs.shell.Ls.ProcessPath()

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8168?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13403310#comment-13403310 ] 

Hudson commented on HADOOP-8168:
--------------------------------

Integrated in Hadoop-Common-trunk-Commit #2402 (See [https://builds.apache.org/job/Hadoop-Common-trunk-Commit/2402/])
    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

        

[jira] [Updated] (HADOOP-8168) empty-string owners or groups causes {{MissingFormatWidthException}} in o.a.h.fs.shell.Ls.ProcessPath()

Posted by "Eugene Koontz (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-8168?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eugene Koontz updated HADOOP-8168:
----------------------------------

    Status: Patch Available  (was: Open)
    
> 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
>         Attachments: HADOOP-8168.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.5.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.5.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

        

[jira] [Commented] (HADOOP-8168) empty-string owners or groups causes {{MissingFormatWidthException}} in o.a.h.fs.shell.Ls.ProcessPath()

Posted by "Alejandro Abdelnur (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8168?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13401058#comment-13401058 ] 

Alejandro Abdelnur commented on HADOOP-8168:
--------------------------------------------

+1, built & tested with S3
                
> 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
>         Attachments: HADOOP-8168.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

        

[jira] [Updated] (HADOOP-8168) empty-string owners or groups causes {{MissingFormatWidthException}} in o.a.h.fs.shell.Ls.ProcessPath()

Posted by "Eugene Koontz (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-8168?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eugene Koontz updated HADOOP-8168:
----------------------------------

    Summary: empty-string owners or groups causes {{MissingFormatWidthException}} in o.a.h.fs.shell.Ls.ProcessPath()  (was: empty-string owners or groups causes {{MissingFormatWidthExeption}} in o.a.h.fs.shell.Ls.ProcessPath())
    
> 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.24.0, 0.23.1
>            Reporter: Eugene Koontz
>
> 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.5.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.5.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

        

[jira] [Closed] (HADOOP-8168) empty-string owners or groups causes {{MissingFormatWidthException}} in o.a.h.fs.shell.Ls.ProcessPath()

Posted by "Arun C Murthy (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-8168?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Arun C Murthy closed HADOOP-8168.
---------------------------------

    
> 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.2-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
For more information on JIRA, see: http://www.atlassian.com/software/jira