Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-6415

Missing null check in FSImageSerialization#writePermissionStatus()

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: namenode
    • Labels:
      None
    • Target Version/s:

      Description

          PermissionStatus.write(out, inode.getUserName(), inode.getGroupName(), p);
      

      getUserName() / getGroupName() may return null.
      null check should be added for these two calls.

        Attachments

        1. HDFS-6415.patch
          1 kB
          Chen He

          Activity

            People

            • Assignee:
              airbots Chen He
              Reporter:
              yuzhihong@gmail.com Ted Yu

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment