You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Bharath Mundlapudi (JIRA)" <ji...@apache.org> on 2011/06/01 23:58:47 UTC
[jira] [Resolved] (HADOOP-7345) listStatus for local files throws
NPE instead of permission denied
[ https://issues.apache.org/jira/browse/HADOOP-7345?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bharath Mundlapudi resolved HADOOP-7345.
----------------------------------------
Resolution: Duplicate
> listStatus for local files throws NPE instead of permission denied
> ------------------------------------------------------------------
>
> Key: HADOOP-7345
> URL: https://issues.apache.org/jira/browse/HADOOP-7345
> Project: Hadoop Common
> Issue Type: Bug
> Components: fs
> Affects Versions: 0.23.0
> Reporter: Daryn Sharp
>
> Calling {{fs.listStatus}} on a local directory where the user does not have permissions generates a {{NullPointerException}}:
> {noformat}
> Exception in thread "main" java.lang.NullPointerException
> at org.apache.hadoop.fs.FileSystem.listStatus(FileSystem.java:1115)
> at org.apache.hadoop.fs.FileSystem.listStatus(FileSystem.java:1150)
> at org.apache.hadoop.fs.ChecksumFileSystem.listStatus(ChecksumFileSystem.java:494)
> {noformat}
> FileSystem.java:
> {code}
> 1111: private void listStatus(ArrayList<FileStatus> results, Path f,
> 1112: PathFilter filter) throws FileNotFoundException, IOException {
> 1113: FileStatus listing[] = listStatus(f);
> 1114:
> 1115: for (int i = 0; i < listing.length; i++) {
> {code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira