commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 17219] New: - Email address validation incorrectly accepts commas
Date Wed, 19 Feb 2003 20:09:19 GMT
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


Mime
View raw message