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

Get CLI Command displays Authentication error for Authorization error

    XMLWordPrintableJSON

Details

    Description

      CLI Get Command display "org.apache.zookeeper.KeeperException$NoAuthException: KeeperErrorCode = NoAuth for /b" when user does not have read access on the znode /b.

      Steps to reproduce the bug:

      [zk: vm1:2181(CONNECTED) 1] create /b
      Created /b
      [zk: vm1:2181(CONNECTED) 2] getAcl /b
      'world,'anyone
      : cdrwa
      [zk: vm1:2181(CONNECTED) 3] setAcl /b world:anyone:wa
      [zk: vm1:2181(CONNECTED) 4] getAcl /b
      'world,'anyone
      : wa
      [zk: vm1:2181(CONNECTED) 5] get /b
      org.apache.zookeeper.KeeperException$NoAuthException: KeeperErrorCode = NoAuth for /b
      [zk: vm1:2181(CONNECTED) 6]
      

      Expected output:

      [zk: vm1:2181(CONNECTED) 0] get /b
      Insufficient permission : /b
      

       

       

      Attachments

        Issue Links

          Activity

            People

              arshad.mohammad Mohammad Arshad
              arshad.mohammad Mohammad Arshad
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h