commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Max Gilead (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (VALIDATOR-326) Configure DomainValidator to accept any well-formed TLDs
Date Mon, 09 Dec 2013 12:14:07 GMT

     [ https://issues.apache.org/jira/browse/VALIDATOR-326?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Max Gilead updated VALIDATOR-326:
---------------------------------

    Attachment: VALIDATOR-326.patch

> Configure DomainValidator to accept any well-formed TLDs
> --------------------------------------------------------
>
>                 Key: VALIDATOR-326
>                 URL: https://issues.apache.org/jira/browse/VALIDATOR-326
>             Project: Commons Validator
>          Issue Type: Improvement
>            Reporter: Max Gilead
>              Labels: patch
>         Attachments: VALIDATOR-326.patch
>
>
> Currently DomainValidator can be put into 'allowLocal' mode which accepts any well-formed
host names (like 'myhostname') but does not accept subdomains (like 'myhostname.mynetwork').
Intranet networks are sometimes configured with unusual internal top-level domains and for
such cases it's necessary to relax the check for a TLD to allow pretty much any well-formed
domain.
> The attached patch does that by adding another flag to the UrlValidator and exposing
a new constructor in DomainValidator and EmailValidator. The patch is against the latest SVN
as of 2013.12.09 (rev 1549539).
> Please note this patch does not add any missing top-level domains or otherwise alter
the existing behaviour.
> Legal: I release this code into the public domain for anyone to use and relicense as
they see fit; with no warranties of any kind.



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Mime
View raw message