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 D072510A49 for ; Thu, 13 Feb 2014 21:46:29 +0000 (UTC) Received: (qmail 79018 invoked by uid 500); 13 Feb 2014 21:46:22 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 78956 invoked by uid 500); 13 Feb 2014 21:46:21 -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 78928 invoked by uid 99); 13 Feb 2014 21:46:21 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Feb 2014 21:46:21 +0000 Date: Thu, 13 Feb 2014 21:46:21 +0000 (UTC) From: "Haohui Mai (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-5935) New Namenode UI FS browser should throw smarter error messages 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-5935?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13900768#comment-13900768 ] Haohui Mai commented on HDFS-5935: ---------------------------------- Thanks for the patch. I think the error message looks good. {code} + var msg = '

Failed to retreive data from ' + url + ': ' + err + '

'; + switch(jqxhr.status) { ... {code} The first line gives a default value to {{msg}}, then the code uses {{switch()}} to handle the special cases. It might be a little bit confusing. Maybe we can convert it into a series of if-else-ifs? > New Namenode UI FS browser should throw smarter error messages > -------------------------------------------------------------- > > Key: HDFS-5935 > URL: https://issues.apache.org/jira/browse/HDFS-5935 > Project: Hadoop HDFS > Issue Type: Bug > Components: namenode > Affects Versions: 2.3.0 > Reporter: Travis Thompson > Assignee: Travis Thompson > Priority: Minor > Attachments: HDFS-5935-1.patch > > > When browsing using the new FS browser in the namenode, if I try to browse a folder that I don't have permission to view, it throws the error: > {noformat} > Failed to retreive data from /webhdfs/v1/system?op=LISTSTATUS, cause: Forbidden > WebHDFS might be disabled. WebHDFS is required to browse the filesystem. > {noformat} > The reason I'm not allowed to see /system is because I don't have permission, not because WebHDFS is disabled. -- This message was sent by Atlassian JIRA (v6.1.5#6160)