diff --git a/src/java/main/org/apache/zookeeper/server/FinalRequestProcessor.java b/src/java/main/org/apache/zookeeper/server/FinalRequestProcessor.java index fc85ed35318..a7f824d6139 100644 --- a/src/java/main/org/apache/zookeeper/server/FinalRequestProcessor.java +++ b/src/java/main/org/apache/zookeeper/server/FinalRequestProcessor.java @@ -436,9 +436,9 @@ public void processRequest(Request request) { synchronized(n) { aclG = n.acl; } - PrepRequestProcessor.checkACL(zks, zks.getZKDatabase().convertLong(aclG), + PrepRequestProcessor.checkACL(zks, request.cnxn, zks.getZKDatabase().aclForNode(n), ZooDefs.Perms.READ, - request.authInfo); + request.authInfo, getChildrenPaginatedRequest.getPath(), null); final int maxReturned = getChildrenPaginatedRequest.getMaxReturned(); List list = zks.getZKDatabase().getPaginatedChildren( getChildrenPaginatedRequest.getPath(), stat,