commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Oschwald (Issue Comment Edited) (JIRA)" <j...@apache.org>
Subject [jira] [Issue Comment Edited] (VALIDATOR-296) EmailValidator#isValid(String) returns true for "joe@foo/bar.com"
Date Fri, 21 Oct 2011 12:06:32 GMT

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

Robert Oschwald edited comment on VALIDATOR-296 at 10/21/11 12:05 PM:
----------------------------------------------------------------------

Corrected comment:

joe@foo/bar.com and any other pattern including !/ fail.

Reason is, that 000-177 is allowed and the domain part (group2) is only tested for occurrences,
not characters.



                
      was (Author: roos):
    Are you testing 1.3.1? This version doesn't define isValidEmail()...

joe@foo/bar.com is correctly detected here in 1.3.1, but the pattern 

assertFalse("joe@!foobar.com Validator failed",EmailValidator.getInstance().isValid("joe@!foobar.com"));

fails here. EmailValidator detects this as a valid address.




                  
> 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