Mohammad Arshad created ZOOKEEPER-3891:
------------------------------------------

             Summary: ZKCli commands give wrong error message "Authentication 
is not valid" for insufficient permissions
                 Key: ZOOKEEPER-3891
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3891
             Project: ZooKeeper
          Issue Type: Bug
            Reporter: Mohammad Arshad
            Assignee: Mohammad Arshad


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
{code:java}
[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]
{code}
 

I think we should change  message "Authentication is not valid" to 
"Insufficient permission"
 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to