[
https://issues.apache.org/jira/browse/HDFS-6240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Haohui Mai updated HDFS-6240:
-----------------------------
Resolution: Fixed
Fix Version/s: 2.5.0
Hadoop Flags: Reviewed
Status: Resolved (was: Patch Available)
I've committed the patch to trunk and branch-2. Thanks [~ajisakaa] for the
contribution.
> 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
> Fix For: 2.5.0
>
> 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)