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

        Ted Yu created issue -
        Brandon Li made changes -
        Field Original Value New Value
        Component/s nfs [ 12320727 ]
        Abhiraj Butala made changes -
        Attachment HDFS-6582.patch [ 12660100 ]
        Abhiraj Butala made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Assignee Abhiraj Butala [ abutala ]
        Brandon Li made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Hadoop Flags Reviewed [ 10343 ]
        Resolution Fixed [ 1 ]
        Brandon Li made changes -
        Fix Version/s 2.6.0 [ 12327181 ]
        Brandon Li made changes -
        Affects Version/s 2.2.0 [ 12325049 ]
        Arun C Murthy made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development