Can't create account with IPv6 address
I’m using DAVdroid 1.2 and tried to create a new DAVdroid account with a IPv6 address.
After entering the IP I got the following error message:
Expected a closing square bracket for IPv6 address at index 0: [2a02
The address is specified as
CatLog gave Warnings at
I’m using Android Version 6.0.1.
I hope you can help me.
And you’re sure that the closing square bracket is correctly entered? Did you try with slash at the end?
@rfc2822 Yes, no matter what I type everytime the closing square bracket is expected before the first colon.
It seems as if the first colon is recognized as the end of the host.
I also tried it with a slash at the end.
Maybe problems with the IDN conversion …
Turns out that Android’s
Uriclass doesn’t understand IPv6 literals. It returns
Error parsing port string. java.lang.NumberFormatException: Invalid int: "2::3]"when calling it for
http://[2a02:2::3]/testbecause it interprets everything before the first
:as host name, and everything else as port number (quality crafted by Google).
Seems like we have to wrap the the check into a real Java
IPv6 literals should work with DAVx⁵ 2.4. Can you confirm that?