Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-7327

FileSystem.listStatus() throws NullPointerException instead of IOException upon access permission failure

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.22.0, 0.23.0
    • Fix Version/s: 0.23.0
    • Component/s: fs
    • Labels:
      None

      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

        1. hadoop-7327-1.patch
          0.6 kB
          Matt Foley
        2. hadoop-7327-2.patch
          3 kB
          Matt Foley

          Issue Links

            Activity

              People

              • Assignee:
                mattf Matt Foley
                Reporter:
                mattf Matt Foley
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: