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

Missing null check in FSImageSerialization#writePermissionStatus()

    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

          Activity

            People

            • Assignee:
              airbots Chen He
              Reporter:
              yuzhihong@gmail.com Ted Yu
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: