[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-3128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17298754#comment-17298754
 ] 

Mohammad Arshad commented on ZOOKEEPER-3128:
--------------------------------------------

This issue is same as  ZOOKEEPER-3891. Get command scenario was missed in that 
fix.

> CLI Commands display 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)

Reply via email to