You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Guido Zockoll (Updated) (JIRA)" <ji...@apache.org> on 2011/12/28 12:15:30 UTC

[jira] [Updated] (VALIDATOR-302) EMailValidator: Addresses with leading spaces must not be accepted

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

Guido Zockoll updated VALIDATOR-302:
------------------------------------

    Summary: EMailValidator: Addresses with leading spaces must not be accepted  (was: EMailAddresses with leading spaces must not be accepted)
    
> EMailValidator: Addresses with leading spaces must not be accepted
> ------------------------------------------------------------------
>
>                 Key: VALIDATOR-302
>                 URL: https://issues.apache.org/jira/browse/VALIDATOR-302
>             Project: Commons Validator
>          Issue Type: Bug
>          Components: Routines
>            Reporter: Guido Zockoll
>
>     @Test
>     public void testEmailValidatorBug() {
>         // The commons validator class accepts an address with an leading whitespace which seams to be a bug.
>         boolean shouldBe = false;
>         boolean isActual = true;
>         String eMail = " user@foo.com";
>         logger.debug("{} is {}", eMail, validator.isValid(eMail) ? "valid" : "invalid");
>         assertThat("Check failed for " + eMail, validator.isValid(eMail), is(isActual));
>     }

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