[
https://issues.apache.org/jira/browse/VALIDATOR-484?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17792523#comment-17792523
]
Elliotte Rusty Harold edited comment on VALIDATOR-484 at 12/3/23 1:03 PM:
--------------------------------------------------------------------------
RFC 2396 is an obsolete and superseded spec for URIs. DomainValidator handles
domain names, which are not URIs. Surprisingly, I was not able to quickly
locate the official syntax for domain names or IDNs, but I'm sure it's around
somewhere. Maybe RFC 5890?
Does it 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.
was (Author: elharo):
RFC 2396 is an obsolete and superseded spec for URIs. DomainValidator handles
domain names, which are not URIs. Surprisingly, I was not 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)