You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Yannick Gladow (JIRA)" <ji...@apache.org> on 2015/12/24 12:15:49 UTC
[jira] [Created] (VALIDATOR-385) Flag in getInstance for tld has no
influence on actual behavior
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)