Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
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
- relates to
-
ZOOKEEPER-3891 ZKCli commands give wrong error message "Authentication is not valid" for insufficient permissions
- Closed
- links to