Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-2804

Node creation fails with NPE if ACLs are null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.6.0
    • None
    • None

    Description

      If null ACLs are passed then zk node creation or set ACL fails with NPE

      java.lang.NullPointerException
      	at org.apache.zookeeper.server.PrepRequestProcessor.removeDuplicates(PrepRequestProcessor.java:1301)
      	at org.apache.zookeeper.server.PrepRequestProcessor.fixupACL(PrepRequestProcessor.java:1341)
      	at org.apache.zookeeper.server.PrepRequestProcessor.pRequest2Txn(PrepRequestProcessor.java:519)
      	at org.apache.zookeeper.server.PrepRequestProcessor.pRequest(PrepRequestProcessor.java:1126)
      	at org.apache.zookeeper.server.PrepRequestProcessor.run(PrepRequestProcessor.java:178)
      

      Expected to handle null in server and return proper error code to client

      Attachments

        Issue Links

          Activity

            People

              Bhupendra Bhupendra Kumar Jain
              Bhupendra Bhupendra Kumar Jain
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: