commons-issues mailing list archives

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


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

Corrected comment:

joe@foo/ 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/ is correctly detected here in 1.3.1, but the pattern 

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

fails here. EmailValidator detects this as a valid address.

> EmailValidator#isValid(String) returns true for "joe@foo/"
> -----------------------------------------------------------------
>                 Key: VALIDATOR-296
>                 URL:
>             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/"));

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message