You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@zookeeper.apache.org by "Mohammad Arshad (Jira)" <ji...@apache.org> on 2021/03/10 13:28:00 UTC

[jira] [Updated] (ZOOKEEPER-3128) Get CLI Command displays Authentication error for Authorization error

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

Mohammad Arshad updated ZOOKEEPER-3128:
---------------------------------------
    Summary: Get CLI Command displays Authentication error for Authorization error  (was: CLI Commands display Authentication error for Authorization error)

> Get CLI Command displays Authentication error for Authorization error
> ---------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-3128
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3128
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: server
>            Reporter: Mohammad Arshad
>            Assignee: Mohammad Arshad
>            Priority: Minor
>             Fix For: 3.8.0
>
>
> CLI Get Command display "org.apache.zookeeper.KeeperException$NoAuthException: KeeperErrorCode = NoAuth for /b" when user does not have read access on the znode /b.
> Steps to reproduce the bug:
> {noformat}
> [zk: vm1:2181(CONNECTED) 1] create /b
> Created /b
> [zk: vm1:2181(CONNECTED) 2] getAcl /b
> 'world,'anyone
> : cdrwa
> [zk: vm1:2181(CONNECTED) 3] setAcl /b world:anyone:wa
> [zk: vm1:2181(CONNECTED) 4] getAcl /b
> 'world,'anyone
> : wa
> [zk: vm1:2181(CONNECTED) 5] get /b
> org.apache.zookeeper.KeeperException$NoAuthException: KeeperErrorCode = NoAuth for /b
> [zk: vm1:2181(CONNECTED) 6]
> {noformat}
> Expected output:
> {noformat}
> [zk: vm1:2181(CONNECTED) 0] get /b
> Insufficient permission : /b
> {noformat}
>  
>  



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