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.
// 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; }
Is there any other workaround to work with ZooKeeper ACL's IP scheme with IPV6 address?