[
https://issues.apache.org/jira/browse/HDFS-6240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13986410#comment-13986410
]
Akira AJISAKA commented on HDFS-6240:
-------------------------------------
[~wheat9], would you please review the patch?
> WebImageViewer returns 404 if LISTSTATUS to an empty directory
> --------------------------------------------------------------
>
> Key: HDFS-6240
> URL: https://issues.apache.org/jira/browse/HDFS-6240
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: tools
> Affects Versions: 2.5.0
> Reporter: Akira AJISAKA
> Assignee: Akira AJISAKA
> Attachments: HDFS-6240.patch
>
>
> {{WebImageViewer}} will get the following error if there is an empty
> directory is in {{/user/root/}}.
> {code}
> [root@trunk ~]# hdfs dfs -ls -R webhdfs://localhost:5978/user/root/
> ls: Unexpected HTTP response: code=404 != 200, op=LISTSTATUS, message=Not
> Found
> {code}
> The reason of the error is that {{WebImageViewer}} returns 404 (not found) if
> {{LISTSTATUS}} to an empty directory. It should return 200 (ok) and empty
> FileStatuses.
--
This message was sent by Atlassian JIRA
(v6.2#6252)