commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erhan Bagdemir (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (VALIDATOR-296) EmailValidator#isValid(String) returns true for "joe@foo/bar.com"
Date Mon, 28 Nov 2011 18:01:40 GMT

    [ https://issues.apache.org/jira/browse/VALIDATOR-296?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13158603#comment-13158603
] 

Erhan Bagdemir commented on VALIDATOR-296:
------------------------------------------

assertFalse(
"/ not valid in domain",
validator.isValid("joe@ap/ache.org")
);

would pass, just because that you asserts "false". 
assertTrue will fail :/
                
> EmailValidator#isValid(String) returns true for "joe@foo/bar.com"
> -----------------------------------------------------------------
>
>                 Key: VALIDATOR-296
>                 URL: https://issues.apache.org/jira/browse/VALIDATOR-296
>             Project: Commons Validator
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 1.3.1 Release
>            Reporter: John Crossman
>
> This assertion fails for me:
> assertFalse(EmailValidator.getInstance().isValidEmail("joe@foo/bar.com"));

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message