You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@zookeeper.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/01/06 07:01:00 UTC

[jira] [Updated] (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 ]

ASF GitHub Bot updated ZOOKEEPER-3891:
--------------------------------------
    Labels: pull-request-available  (was: )

> 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: Enrico Olivelli
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 3.7.0
>
>          Time Spent: 0.5h
>  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.20.1#820001)