You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2003/02/19 21:09:19 UTC
DO NOT REPLY [Bug 17219] New: -
Email address validation incorrectly accepts commas
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17219>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17219
Email address validation incorrectly accepts commas
Summary: Email address validation incorrectly accepts commas
Product: Commons
Version: Nightly Builds
Platform: Other
OS/Version: Other
Status: NEW
Severity: Critical
Priority: Other
Component: Validator
AssignedTo: commons-dev@jakarta.apache.org
ReportedBy: jakarta@ehatchersolutions.com
If a comma is entered into the domain part of an e-mail address, the validation
should fail, but it accepts it fine. The user part of the e-mail address
correctly catches this as an error. I tried to figure out how to fix it, but
the regex stuff there was too convoluted to make sense out of. But did add a
test case to expose this in EmailTest.java:
public void testEmailWithCommas() throws ValidatorException {
ValueBean info = new ValueBean();
info.setValue("joe,blow@apache.org");
valueTest(info, false);
info.setValue("joeblow@apa,che.org");
valueTest(info, false);
info.setValue("joeblow@apache.o,rg");
valueTest(info, false);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org