You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Bruce Gao (JIRA)" <ji...@apache.org> on 2013/07/26 07:51:48 UTC

[jira] [Commented] (ZOOKEEPER-1392) Should not allow to read ACL when not authorized to read node

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

Bruce Gao commented on ZOOKEEPER-1392:
--------------------------------------

Hi Thomas :) I think I can reproduce this issue on the current trunk.
Could you please assign this to me if good for you? I can do it.
Thank you!

[zk: localhost:2801(CONNECTED) 12] setAcl /node1 ip:127.0.0.1:cdwa
[zk: localhost:2801(CONNECTED) 13] get /node1
Authentication is not valid : /node1
[zk: localhost:2801(CONNECTED) 14] getAcl /node1
'ip,'127.0.0.1
: cdwa

                
> Should not allow to read ACL when not authorized to read node
> -------------------------------------------------------------
>
>                 Key: ZOOKEEPER-1392
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1392
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: server
>    Affects Versions: 3.4.2
>            Reporter: Thomas Weise
>
> Not authorized to read, yet still able to list ACL:
> [zk: localhost:2181(CONNECTED) 0] getAcl /sasltest/n4
> 'sasl,'notme@EXAMPLE.COM
> : cdrwa
> [zk: localhost:2181(CONNECTED) 1] get /sasltest/n4
> Exception in thread "main" org.apache.zookeeper.KeeperException$NoAuthException: KeeperErrorCode = NoAuth for /sasltest/n4
> 	at org.apache.zookeeper.KeeperException.create(KeeperException.java:113)
> 	at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
> 	at org.apache.zookeeper.ZooKeeper.getData(ZooKeeper.java:1131)
> 	at org.apache.zookeeper.ZooKeeper.getData(ZooKeeper.java:1160)
> 	at org.apache.zookeeper.ZooKeeperMain.processZKCmd(ZooKeeperMain.java:711)
> 	at org.apache.zookeeper.ZooKeeperMain.processCmd(ZooKeeperMain.java:593)
> 	at org.apache.zookeeper.ZooKeeperMain.executeLine(ZooKeeperMain.java:365)
> 	at org.apache.zookeeper.ZooKeeperMain.run(ZooKeeperMain.java:323)
> 	at org.apache.zookeeper.ZooKeeperMain.main(ZooKeeperMain.java:282)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira