hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Akira AJISAKA (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-6240) WebImageViewer returns 404 if LISTSTATUS to an empty directory
Date Thu, 01 May 2014 07:05:15 GMT

    [ 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)

Mime
View raw message