[
https://issues.apache.org/jira/browse/HADOOP-2531?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12556148#action_12556148
]
Raghu Angadi commented on HADOOP-2531:
--------------------------------------
I guess it depends on actual definition of getPermission(). Assuming
defininition is similar to Unix system call stat(), I think this like requiring
stat() to return different values for permissions based on whether the file
system is mounted read-only or read-write (say, for a file with permissions
"rw-rw-r--"), no?
> HDFS FileStatus.getPermission() should return 777 when dfs.permissions=false
> ----------------------------------------------------------------------------
>
> Key: HADOOP-2531
> URL: https://issues.apache.org/jira/browse/HADOOP-2531
> Project: Hadoop
> Issue Type: Bug
> Components: dfs
> Reporter: Doug Cutting
> Fix For: 0.16.0
>
>
> Generic permission checking code should still work correctly when
> dfs.permissions=false. Currently FileStatus#getPermission() returns the
> actual permission when dfs.permissions=false on the namenode, which is
> incorrect, since all accesses are permitted in this case.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.