mkodekar / guava-libraries

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

InternetDomainName parsing fails for URLs with dash at begin or end of subdomain #1808

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Ex.: "www.-navarro-.tumblr.com", "www.-chlebni-lawenda-b.mojabudowa.pl"

Caused by: java.lang.IllegalArgumentException ("Not a valid domain name: 
'-navarro-.tumblr.com'") ? at line -1
com.google.common.base.Preconditions ? in checkArgument at line 119
com.google.common.net.InternetDomainName ? in <init> at line 154
com.google.common.net.InternetDomainName ? in from at line 225

Original issue reported on code.google.com by gosi...@gmail.com on 18 Jul 2014 at 8:30

GoogleCodeExporter commented 9 years ago

Original comment by cgdecker@google.com on 18 Jul 2014 at 4:17

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 3 Nov 2014 at 9:07