Description
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.
Attachments
Attachments
Issue Links
- breaks
-
HADOOP-7353 Cleanup FsShell and prevent masking of RTE stacktraces
- Closed
- is duplicated by
-
HADOOP-7345 listStatus for local files throws NPE instead of permission denied
- Resolved
- relates to
-
HADOOP-7352 FileSystem#listStatus should throw IOE upon access error
- Resolved