You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@zookeeper.apache.org by "lujie (Jira)" <ji...@apache.org> on 2021/06/15 11:43:00 UTC

[jira] [Assigned] (ZOOKEEPER-3891) ZKCli commands give wrong error message "Authentication is not valid" for insufficient permissions

     [ https://issues.apache.org/jira/browse/ZOOKEEPER-3891?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

lujie reassigned ZOOKEEPER-3891:
--------------------------------

    Assignee: lujie  (was: Mohammad Arshad)

> 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: lujie
>            Priority: Major
>             Fix For: 3.7.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> 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)