[
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 = " [email protected]";
> 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