Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.7.2
-
None
-
Reviewed
Description
With ViewFs, the delete and rename operations on internal dirs are denied by throwing AccessControlException.
Unlike the delete() which notify the internal dir path, rename does not.
The attached patch appends the directory path on the logged exception.
ViewFs.java
InodeTree.ResolveResult<AbstractFileSystem> resSrc = fsState.resolve(getUriPath(src), false); if (resSrc.isInternalDir()) { throw new AccessControlException( - "Cannot Rename within internal dirs of mount table: it is readOnly"); + "Cannot Rename within internal dirs of mount table: it is readOnly" + + src); } InodeTree.ResolveResult<AbstractFileSystem> resDst = fsState.resolve(getUriPath(dst), false); if (resDst.isInternalDir()) { throw new AccessControlException( - "Cannot Rename within internal dirs of mount table: it is readOnly"); + "Cannot Rename within internal dirs of mount table: it is readOnly" + + dst); }