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

Yannick Gladow closed VALIDATOR-385.
------------------------------------
    Resolution: Not A Problem

sorry, understood allowTld wrong

> 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)

Reply via email to