Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
ZKCli commands give error message "Authentication is not valid" for insufficient permissions .(when KeeperException.NoAuthException is thrown). This is misleading message.
Steps: to get the error
[zk: vm1:2181(CONNECTED) 0] create /b Created /b [zk: vm1:2181(CONNECTED) 1] getAcl /b 'world,'anyone : cdrwa [zk: vm1:2181(CONNECTED) 2] setAcl /b world:anyone:ra [zk: vm1:2181(CONNECTED) 3] getAcl /b 'world,'anyone : ra [zk: vm1:2181(CONNECTED) 4] create /b/b1 Authentication is not valid : /b/b1 [zk: vm1:2181(CONNECTED) 5]
I think we should change message "Authentication is not valid" to "Insufficient permission"
Attachments
Issue Links
- is related to
-
ZOOKEEPER-3128 Get CLI Command displays Authentication error for Authorization error
- Resolved
- links to