Can't create account with IPv6 address
Sheldor last edited by rfc2822
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?
Sheldor last edited by
@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