Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
0.10.0
-
None
-
None
Description
The HDFSLocationtest and FileContextLocationTest use MiniDFSCluster. This does not seem to enforce permissions when creating directories. The followng test should throw an exception due to lack of permission but it does not:
public void testPermissions() throws IOException { // create a directory that does not permit anything dfsCluster.getFileSystem().mkdir(new Path("/a"), FsPermission.valueOf("----------")); // creating a subdir should fail because even the owner has no write permission dfsCluster.getFileSystem().mkdir(new Path("/a/b"), FsPermission.valueOf("----------")); }