[
https://issues.apache.org/jira/browse/HDFS-6415?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chen He updated HDFS-6415:
--------------------------
Target Version/s: 0.23.11, 2.5.0
Status: Patch Available (was: Open)
I propose to write "nobody" if there is no user and group name.
> Missing null check in FSImageSerialization#writePermissionStatus()
> ------------------------------------------------------------------
>
> Key: HDFS-6415
> URL: https://issues.apache.org/jira/browse/HDFS-6415
> Project: Hadoop HDFS
> Issue Type: Bug
> Reporter: Ted Yu
> Assignee: Chen He
> Priority: Minor
> Attachments: HDFS-6415.patch
>
>
> {code}
> PermissionStatus.write(out, inode.getUserName(), inode.getGroupName(), p);
> {code}
> getUserName() / getGroupName() may return null.
> null check should be added for these two calls.
--
This message was sent by Atlassian JIRA
(v6.2#6252)