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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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,[EMAIL PROTECTED]");
      valueTest(info, false);

      info.setValue("joeblow@apa,che.org");
      valueTest(info, false);

      info.setValue("[EMAIL PROTECTED],rg");
      valueTest(info, false);
   }

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to