Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-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 097144C7B for ; Thu, 2 Jun 2011 17:09:29 +0000 (UTC) Received: (qmail 66619 invoked by uid 500); 2 Jun 2011 17:09:28 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 66558 invoked by uid 500); 2 Jun 2011 17:09:28 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 66382 invoked by uid 99); 2 Jun 2011 17:09:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Jun 2011 17:09:28 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Jun 2011 17:09:27 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 7C739F0B50 for ; Thu, 2 Jun 2011 17:08:47 +0000 (UTC) Date: Thu, 2 Jun 2011 17:08:47 +0000 (UTC) From: "Matt Foley (JIRA)" To: common-issues@hadoop.apache.org Message-ID: <1906647090.63338.1307034527506.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <164637914.38616.1306225908771.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HADOOP-7327) FileSystem.listStatus() throws NullPointerException instead of IOException upon access permission failure 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/HADOOP-7327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13042887#comment-13042887 ] Matt Foley commented on HADOOP-7327: ------------------------------------ @Daryn, for discussion of what exception to throw in the more complete solution, please see https://issues.apache.org/jira/browse/HADOOP-7352?focusedCommentId=13042884&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13042884 > FileSystem.listStatus() throws NullPointerException instead of IOException upon access permission failure > --------------------------------------------------------------------------------------------------------- > > Key: HADOOP-7327 > URL: https://issues.apache.org/jira/browse/HADOOP-7327 > Project: Hadoop Common > Issue Type: Bug > Components: fs > Affects Versions: 0.22.0, 0.23.0 > Reporter: Matt Foley > Assignee: Matt Foley > Attachments: hadoop-7327-1.patch > > > Many processes that call listStatus() expect to handle IOException, but instead are getting runtime error NullPointerException, if the directory being scanned is visible but no-access to the running user id. For example, if directory foo is drwxr-xr-x, and subdirectory foo/bar is drwx------, then trying to do listStatus(Path(foo/bar)) will cause a NullPointerException. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira