You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Rakesh Kumar Singh (JIRA)" <ji...@apache.org> on 2016/09/14 14:31:20 UTC
[jira] [Created] (ZOOKEEPER-2583) Using one client able to access
the znode with localhost but fails from another client when IP ACL is set
for znode using 127.0.0.1
Rakesh Kumar Singh created ZOOKEEPER-2583:
---------------------------------------------
Summary: Using one client able to access the znode with localhost but fails from another client when IP ACL is set for znode using 127.0.0.1
Key: ZOOKEEPER-2583
URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2583
Project: ZooKeeper
Issue Type: Bug
Components: server
Affects Versions: 3.5.1
Reporter: Rakesh Kumar Singh
Priority: Minor
Using one client able to access the znode with localhost but fails from another client when IP ACL is set for znode using 127.0.0.1
Start zookeeper in cluster mode.
Client 1 :-
[zk: localhost:2181(CONNECTED) 11] create /ip_test hello
Created /ip_test
[zk: localhost:2181(CONNECTED) 12] setAcl /ip_test
ip_test ip_test4
[zk: localhost:2181(CONNECTED) 12] setAcl /ip_test ip:127.0.0.1:crdwa
[zk: localhost:2181(CONNECTED) 13] get /ip_test
hello
[zk: localhost:2181(CONNECTED) 14] set /ip_test hi
[zk: localhost:2181(CONNECTED) 15]
Client 2 :-
[zk: localhost:2181(CONNECTED) 0] get /ip_test
Authentication is not valid : /ip_test
[zk: localhost:2181(CONNECTED) 1] getAcl /ip_test
'ip,'127.0.0.1
: cdrwa
[zk: localhost:2181(CONNECTED) 2] quit
now quit the client connection and connect again using 127.0.0.1 (like :- ./zkCli.sh -server 127.0.0.1:2181)
[zk: 127.0.0.1:2181(CONNECTED) 0] get /ip_test
hi
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)