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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.22.0, 0.23.0
    • 0.23.0
    • fs
    • 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-2.patch
          3 kB
          Matthew Foley
        2. hadoop-7327-1.patch
          0.6 kB
          Matthew Foley

        Issue Links

          Activity

            People

              mattf Matthew Foley
              mattf Matthew Foley
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: