[
https://issues.apache.org/jira/browse/ZOOKEEPER-4240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
KARTHIK updated ZOOKEEPER-4240:
-------------------------------
Description:
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?
was:
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?
> 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
>
> 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.3.4#803005)