Github user jainbhupendra24 commented on a diff in the pull request:

    https://github.com/apache/zookeeper/pull/279#discussion_r126334642
  
    --- Diff: src/java/test/org/apache/zookeeper/test/ACLTest.java ---
    @@ -189,4 +191,110 @@ public void process(WatchedEvent event) {
                 }
             }
         }
    +    
    +    @Test
    +    public void testNullACL() throws Exception {
    +        File tmpDir = ClientBase.createTmpDir();
    +        ClientBase.setupTestEnv();
    +        ZooKeeperServer zks = new ZooKeeperServer(tmpDir, tmpDir, 3000);
    +        final int PORT = Integer.parseInt(HOSTPORT.split(":")[1]);
    +        ServerCnxnFactory f = ServerCnxnFactory.createFactory(PORT, -1);
    +        f.startup(zks);
    +        ZooKeeper zk = ClientBase.createZKClient(HOSTPORT);
    +        try {
    +            // case 1 : null ACL with create
    +            try {
    +                zk.create("/foo", "foo".getBytes(), null, 
CreateMode.PERSISTENT);
    --- End diff --
    
    OK , will make these changes


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to