Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Not A Bug
-
None
-
None
Description
Container nodes check the ACL before creation, but the deletion doesn't check the ACL rights. The code below succeeds even tough we removed ACL access permissions for "/a".
zk.create("/a", null, Ids.OPEN_ACL_UNSAFE, CreateMode.CONTAINER); ArrayList<ACL> list = new ArrayList<>(); list.add(new ACL(0, Ids.ANYONE_ID_UNSAFE)); zk.setACL("/", list, -1); zk.delete("/a", -1);