Skip to content

Commit

Permalink
Merge pull request #16 from gaojiabao1991/master
Browse files Browse the repository at this point in the history
Fix Bug: Add authInfo before listNodeEntries
  • Loading branch information
Arjun Surendra authored Feb 20, 2017
2 parents 6572a9d + c2a04e3 commit 3cba0eb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/java/com/deem/zkui/utils/ZooKeeperUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,13 @@ private void createIfDoesntExist(String path, byte[] data, boolean force, ZooKee
}

public ZKNode listNodeEntries(ZooKeeper zk, String path, String authRole) throws KeeperException, InterruptedException {
//Add auth info
for (ACL acl : defaultAcl) {
String scheme=acl.getId().getScheme();
String auth=acl.getId().getId();
zk.addAuthInfo(scheme,auth.getBytes());
}

List<String> folders = new ArrayList<>();
List<LeafBean> leaves = new ArrayList<>();

Expand Down

0 comments on commit 3cba0eb

Please sign in to comment.