Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7B81E107FC for ; Mon, 9 Dec 2013 12:14:19 +0000 (UTC) Received: (qmail 91697 invoked by uid 500); 9 Dec 2013 12:14:12 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 91364 invoked by uid 500); 9 Dec 2013 12:14:08 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 91338 invoked by uid 99); 9 Dec 2013 12:14:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Dec 2013 12:14:07 +0000 Date: Mon, 9 Dec 2013 12:14:07 +0000 (UTC) From: "Max Gilead (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (VALIDATOR-326) Configure DomainValidator to accept any well-formed TLDs MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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)