Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 08EFD110FD for ; Sun, 11 May 2014 02:35:18 +0000 (UTC) Received: (qmail 40694 invoked by uid 500); 11 May 2014 01:35:18 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 40645 invoked by uid 500); 11 May 2014 01:35:18 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 40636 invoked by uid 99); 11 May 2014 01:35:18 -0000 Received: from Unknown (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 May 2014 01:35:18 +0000 Date: Sun, 11 May 2014 01:35:18 +0000 (UTC) From: "Hudson (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-6240) WebImageViewer returns 404 if LISTSTATUS to an empty directory MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-6240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13994373#comment-13994373 ] Hudson commented on HDFS-6240: ------------------------------ FAILURE: Integrated in Hadoop-Mapreduce-trunk #1778 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk/1778/]) HDFS-6240. WebImageViewer returns 404 if LISTSTATUS to an empty directory. Contributed by Akira Ajisaka. (wheat9: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1593591) * /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt * /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/offlineImageViewer/FSImageLoader.java * /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/tools/offlineImageViewer/TestOfflineImageViewer.java > 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)