HDFS-6962 fixed a long standing issue where default ACLs are not correctly applied to files when they are created from the hadoop shell.
With this change, if you create a file with default ACLs against the parent directory, with dfs.namenode.posix.acl.inheritance.enabled=false, the result is:
And if you enable this, to fix the bug above, the result is as you would expect:
If I then create a file over HTTPFS or webHDFS, the behaviour is not the same as above:
Notice the mask is set to r-x and this remove the write permission on the new file.
As part of
HDFS-6962 a new parameter was added to webhdfs 'unmaskedpermission'. By passing it to a webhdfs call, it can result in the same behaviour as when a file is written from the CLI:
However, this parameter was never ported to HTTPFS.
This Jira is to replicate the same changes to HTTPFS so this parameter is available there too.