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 19A30186E8 for ; Fri, 18 Sep 2015 03:17:05 +0000 (UTC) Received: (qmail 29473 invoked by uid 500); 18 Sep 2015 03:17:04 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 29345 invoked by uid 500); 18 Sep 2015 03:17:04 -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 28991 invoked by uid 99); 18 Sep 2015 03:17:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Sep 2015 03:17:04 +0000 Date: Fri, 18 Sep 2015 03:17:04 +0000 (UTC) From: "Xiao Chen (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HDFS-5802) NameNode does not check for inode type before traversing down a path MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-5802?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:all-tabpanel ] Xiao Chen updated HDFS-5802: ---------------------------- Status: Patch Available (was: Open) > NameNode does not check for inode type before traversing down a path > -------------------------------------------------------------------- > > Key: HDFS-5802 > URL: https://issues.apache.org/jira/browse/HDFS-5802 > Project: Hadoop HDFS > Issue Type: Bug > Components: namenode > Affects Versions: 2.0.0-alpha > Reporter: Harsh J > Assignee: Xiao Chen > Priority: Trivial > Attachments: HDFS-5802.001.patch, HDFS-5802.002.patch, HDFS-5802.= 003.patch, HDFS-5802.004.patch, HDFS-5802.005.patch, HDFS-5802.006.patch > > > This came up during the discussion on a forum at http://community.clouder= a.com/t5/Batch-Processing-and-Workflow/Permission-denied-access-EXECUTE-on-= getting-the-status-of-a-file/m-p/5049#M162 surrounding an fs.exists(=E2=80= =A6) check running on a path /foo/bar, where /foo is a file and not a direc= tory. > In such a case, NameNode yields a user-confusing message of {{Permission = denied: user=3Dfoo, access=3DEXECUTE, inode=3D"/foo":foo:foo:-rw-r--r--}} i= nstead of clearly saying (and realising) "/foo is not a directory" or "/foo= is a file" before it tries to traverse further down to locate the requeste= d path. -- This message was sent by Atlassian JIRA (v6.3.4#6332)