Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-6582

Missing null check in RpcProgramNfs3#read(XDR, SecurityHandler)

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.6.0
    • Component/s: nfs
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Around line 691:

              FSDataInputStream fis = clientCache.getDfsInputStream(userName,
                  Nfs3Utils.getFileIdPath(handle));
      
              try {
                readCount = fis.read(offset, readbuffer, 0, count);
      

      fis may be null, leading to NullPointerException

      1. HDFS-6582.patch
        2 kB
        Abhiraj Butala

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Abhiraj Butala
            Reporter:
            Ted Yu
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development