You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Mohammad Arshad (Jira)" <ji...@apache.org> on 2020/07/15 17:19:00 UTC
[jira] [Created] (ZOOKEEPER-3891) ZKCli commands give wrong error
message "Authentication is not valid" for insufficient permissions
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)