commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yannick Gladow (JIRA)" <j...@apache.org>
Subject [jira] [Created] (VALIDATOR-385) Flag in getInstance for tld has no influence on actual behavior
Date Thu, 24 Dec 2015 11:15:49 GMT
Yannick Gladow created VALIDATOR-385:
----------------------------------------

             Summary: Flag in getInstance for tld has no influence on actual behavior
                 Key: VALIDATOR-385
                 URL: https://issues.apache.org/jira/browse/VALIDATOR-385
             Project: Commons Validator
          Issue Type: Bug
    Affects Versions: 1.5.0, 1.5.1
            Reporter: Yannick Gladow


Hello, 
I recently stumbled over an error validating an email in our system.
A client could not register, although his tld was recently added to the valid ones. After
updating to the newest version of commons-validator the whitelist was updated and the problem
gone, but I still wondered why the tld was even checked in the first place. The flag for that
was set to false.
I checked the EmailValidator and DomainValidator code and came to the conclusion, that the
parameter allowTld (in getInstance) has no influence on the fact if tld's are checked, they
seem to be checked in any case in the DomainValidator isValid() -> isValidTld method.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message