You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Lipin Dmitriy (JIRA)" <ji...@apache.org> on 2013/06/06 09:42:19 UTC

[jira] [Updated] (ZOOKEEPER-1673) Zookeeper don't support cidr in expression in ACL with ip scheme

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

Lipin Dmitriy updated ZOOKEEPER-1673:
-------------------------------------

    Affects Version/s:     (was: 3.4.5)
    
> Zookeeper don't support cidr in expression in ACL with ip scheme
> ----------------------------------------------------------------
>
>                 Key: ZOOKEEPER-1673
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1673
>             Project: ZooKeeper
>          Issue Type: Improvement
>            Reporter: Lipin Dmitriy
>            Priority: Minor
>              Labels: auth
>
> Currently, when i try to set ACL with cidr in expression, i get exception:
> {code}
> [zk: localhost:2181(CONNECTED) 2] setAcl /AS0 ip:127.0.0.1/8:cdrwa
> Exception in thread "main" org.apache.zookeeper.KeeperException$InvalidACLException: KeeperErrorCode = InvalidACL for /AS0
> 	at org.apache.zookeeper.KeeperException.create(KeeperException.java:112)
> 	at org.apache.zookeeper.KeeperException.create(KeeperException.java:42)
> 	at org.apache.zookeeper.ZooKeeper.setACL(ZooKeeper.java:1175)
> 	at org.apache.zookeeper.ZooKeeperMain.processZKCmd(ZooKeeperMain.java:716)
> 	at org.apache.zookeeper.ZooKeeperMain.processCmd(ZooKeeperMain.java:581)
> 	at org.apache.zookeeper.ZooKeeperMain.executeLine(ZooKeeperMain.java:353)
> 	at org.apache.zookeeper.ZooKeeperMain.run(ZooKeeperMain.java:311)
> 	at org.apache.zookeeper.ZooKeeperMain.main(ZooKeeperMain.java:270)
> {code}
> Also, there is no support for CIDR in IPAuthenticationProvider.isValid, but IPAuthenticationProvider.matches has it.

--
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