Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.23.1, 0.24.0
-
None
-
Reviewed
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
Attachments
Attachments
Issue Links
- is duplicated by
-
HADOOP-8496 FsShell is broken with s3 filesystems
- Resolved
- relates to
-
HADOOP-4335 FsShell -ls fails for file systems without owners or groups
- Closed