[ 
https://issues.apache.org/jira/browse/VALIDATOR-484?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17792523#comment-17792523
 ] 

Elliotte Rusty Harold commented on VALIDATOR-484:
-------------------------------------------------

RFC 2396 is an obsolete and superseded spec for URIs. DomainValidator handles 
domain names, which are not URIs. Surprisingly, I was able to quickly locate 
the official syntax for domain names or IDNs, but I'm sure it's around 
somewhere. Maybe RFC 5890?

Dioe sit matter that 0021_amedia is a host name, not a domain name?

https://en.wikipedia.org/wiki/Hostname does suggest that underscores are not 
allowed.

> DomainValidator validate false for correct domain
> -------------------------------------------------
>
>                 Key: VALIDATOR-484
>                 URL: https://issues.apache.org/jira/browse/VALIDATOR-484
>             Project: Commons Validator
>          Issue Type: Bug
>    Affects Versions: 1.7
>            Reporter: Sedrak Dalaloyan
>            Priority: Major
>
> {code:java}
> DomainValidator domainValidator = DomainValidator.getInstance();
> System.out.println(domainValidator.isValid("0021_amedia.uwaterloo.ca"));{code}
> returns false for correct domain.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to