Hadoop Common
  1. Hadoop Common
  2. HADOOP-7327

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor 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.

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

        Issue Links

          Activity

          Matt Foley created issue -
          Matt Foley made changes -
          Field Original Value New Value
          Link This issue blocks HADOOP-7326 [ HADOOP-7326 ]
          Matt Foley made changes -
          Link This issue blocks HDFS-1967 [ HDFS-1967 ]
          Matt Foley made changes -
          Attachment hadoop-7327-1.patch [ 12480218 ]
          Matt Foley made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Bharath Mundlapudi made changes -
          Link This issue is duplicated by HADOOP-7345 [ HADOOP-7345 ]
          Matt Foley made changes -
          Link This issue relates to HADOOP-7352 [ HADOOP-7352 ]
          Daryn Sharp made changes -
          Link This issue breaks HADOOP-7353 [ HADOOP-7353 ]
          Matt Foley made changes -
          Link This issue blocks HDFS-1967 [ HDFS-1967 ]
          Matt Foley made changes -
          Link This issue blocks HADOOP-7326 [ HADOOP-7326 ]
          Matt Foley made changes -
          Priority Major [ 3 ] Minor [ 4 ]
          Matt Foley made changes -
          Attachment hadoop-7327-2.patch [ 12482998 ]
          Matt Foley made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Fix Version/s 0.23.0 [ 12315569 ]
          Resolution Fixed [ 1 ]
          Arun C Murthy made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development