[
https://issues.apache.org/jira/browse/ZOOKEEPER-4240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kezhu Wang resolved ZOOKEEPER-4240.
-----------------------------------
Fix Version/s: 3.10.0
Resolution: Fixed
Issue resolved by pull request 2280
[https://github.com/apache/zookeeper/pull/2280]
> IPV6 support in ZooKeeper ACL
> -----------------------------
>
> Key: ZOOKEEPER-4240
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4240
> Project: ZooKeeper
> Issue Type: Bug
> Components: server
> Affects Versions: 3.6.2
> Reporter: KARTHIK
> Priority: Major
> Labels: ACL, ipv6, pull-request-available
> Fix For: 3.10.0
>
> Time Spent: 7h
> Remaining Estimate: 0h
>
> The IPAuthenticationProvider class doesn't handle the IPV6 addresses
> properly. Because of this, the authorization is failing when using the ACL
> with the IP scheme.
> *private byte[] addr2Bytes(String addr)* - validates only the IPV4 and not
> the IPV6 address. Below is the code snippet of this method.
> {code:java}
> // This is a bit weird but we need to return the address and the number of
> // bytes (to distinguish between IPv4 and IPv6
> private byte[] addr2Bytes(String addr) {
> byte[] b = v4addr2Bytes(addr);
> // TODO Write the v6addr2Bytes
> return b;
> }{code}
>
> Is there any other workaround to work with ZooKeeper ACL's IP scheme with
> IPV6 address?
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)