[ 
https://issues.apache.org/jira/browse/HDFS-16567?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ruancongyong updated HDFS-16567:
--------------------------------
    Description: when calling setPermission and permission parameter is null, a 
 NullPointerException will occurs. According to the [official 
manual,|https://hadoop.apache.org/docs/stable/hadoop-project-dist/hadoop-hdfs/HdfsPermissionsGuide.html]
 the method doesn't say that the parameter is not empty. when without the 
permission parameter  the mode of new directory is {{P & ^umask & 0777 and the 
mode of the new file is }}{{{}P & ^umask & 0666{}}}{{{}{}}}  (was: when calling 
setPermission and permission parameter is null, a  NullPointerException will 
occurs. According to the [official 
manual,|https://hadoop.apache.org/docs/stable/hadoop-project-dist/hadoop-hdfs/HdfsPermissionsGuide.html]
 the method doesn't say that the parameter is not empty)

> A NullPointerException occurs when calling setPermission and permission is 
> null 
> --------------------------------------------------------------------------------
>
>                 Key: HDFS-16567
>                 URL: https://issues.apache.org/jira/browse/HDFS-16567
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: hdfs-client
>            Reporter: ruancongyong
>            Priority: Minor
>             Fix For: 3.3.2
>
>
> when calling setPermission and permission parameter is null, a  
> NullPointerException will occurs. According to the [official 
> manual,|https://hadoop.apache.org/docs/stable/hadoop-project-dist/hadoop-hdfs/HdfsPermissionsGuide.html]
>  the method doesn't say that the parameter is not empty. when without the 
> permission parameter  the mode of new directory is {{P & ^umask & 0777 and 
> the mode of the new file is }}{{{}P & ^umask & 0666{}}}{{{}{}}}



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to