tailorlala / guava-libraries

Automatically exported from code.google.com/p/guava-libraries
Apache License 2.0
0 stars 0 forks source link

InternetDomainName.isValid is not RFC1123 compliant #1872

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
InternetDomainName.isValid returns false for the parameter "8server".

RFC1123 suggests that names should be able to start with a digit. See 
https://groups.google.com/forum/#!topic/guava-discuss/8Sycya7Fkok on 
guava-discuss for a discussion of the issue. 

I also asked for clarification on Server Fault at 
http://serverfault.com/questions/638260/is-it-valid-for-a-hostname-to-start-with
-a-digit

My final suggestion on the mailing list for solving this was as follows:

"What about if the final part starts with a digit actually checking if the 
complete name is an IP address e.g. calling InetAddreses.isInetAddress? The 
discussion section in RFC 1123 does suggest a full syntactic check to prevent a 
dotted decimal number getting through."

but there was no response.

Original issue reported on code.google.com by manderso...@gmail.com on 27 Oct 2014 at 10:59

GoogleCodeExporter commented 9 years ago
This issue has been migrated to GitHub.

It can be found at https://github.com/google/guava/issues/<issue id>

Original comment by cgdecker@google.com on 1 Nov 2014 at 4:08

GoogleCodeExporter commented 9 years ago

Original comment by cgdecker@google.com on 1 Nov 2014 at 4:17

GoogleCodeExporter commented 9 years ago

Original comment by cgdecker@google.com on 3 Nov 2014 at 9:07