[
https://issues.apache.org/jira/browse/VALIDATOR-459?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17166672#comment-17166672
]
Sebb edited comment on VALIDATOR-459 at 7/28/20, 9:18 PM:
----------------------------------------------------------
One can now provide a different DomainValidator.
For example the list of General TLDs could be extended to include "local"
was (Author: [email protected]):
One can now provide a different DomainValidator.
For example a sub-class which overrides isValidLocalTld.
> Allow UrlValidator/DomainValidator to skip the TLD validation
> -------------------------------------------------------------
>
> Key: VALIDATOR-459
> URL: https://issues.apache.org/jira/browse/VALIDATOR-459
> Project: Commons Validator
> Issue Type: Improvement
> Reporter: Christophe Lé
> Priority: Minor
> Fix For: 1.7
>
>
> Hello there,
> One of my applications is validating URLs which can be on the internet OR in
> the same network. Those from the same network are ending with *.local*.
> Unfortunately, *.local* is not referenced anywhere in DomainValidator.
> Besides, whenever new TLDs are out, the library has to be updated with those.
> I was wondering if adding a flag to skip the TLD validation would be an
> interesting feature to have?
> # Whatever exotic internal TLD an application is using, if an URL points to
> nothing it doesn't matter since ultimately, the component which is going to
> initiate a network call will fail.
> # If people doesn't bother about the legitimacy of a TLD, they should not be
> _forced_ to update to the latest version of the library whenever a new TLD is
> out. Such action should be motivated for feature or security reasons.
> This flag would only be meaningful if you don't really care about the
> legitimacy of a TLD.
> What do you think?
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)