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 11:11:00 UTC

[jira] [Updated] (ZOOKEEPER-3128) CLI Commands display 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:
---------------------------------------
    Description: 
CLI Commands 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

{code:java}
[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]
{code}

For example  command
{code:java}
 get /path456 {code}
will display error message
{code:java}
 Authentication is not valid : /path456 {code}
if user does not have read access on znode /path456.

 

 

  was:
CLI Commands display "Authentication is not valid : /path123" when user does not have access on the znode /path123.

For example  command
{code:java}
 get /path456 {code}
will display error message
{code:java}
 Authentication is not valid : /path456 {code}
if user does not have read access on znode /path456.

 

 


> 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 Commands 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
> {code:java}
> [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]
> {code}
> For example  command
> {code:java}
>  get /path456 {code}
> will display error message
> {code:java}
>  Authentication is not valid : /path456 {code}
> if user does not have read access on znode /path456.
>  
>  



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