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 2005/02/05 10:28:59 UTC

DO NOT REPLY [Bug 33409] New: - [validator: email] inexisting dashes and TLD erroneously accepted

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33409>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33409

           Summary: [validator: email] inexisting dashes and TLD erroneously
                    accepted
           Product: Commons
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Validator
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: hauser@acm.org


The org.apache.commons.validator.EmailValidator javadoc even says that the
erroneous TLD "d-" is accepted.

Why don't you rule them out?

3 out of 4 test values org.apache.commons.validator.EmailTest.testEmailWithDash()
seem to be similarly far from reality w.r.t. their TLDs.

Shouldn't this code attempt to comply with
- http://www.iana.org/gtld/gtld.htm and 
- http://www.iana.org/cctld/cctld.htm

similarly, "rh@abc-.-a--b.com" doesn't really appear to exist ever in practice
and still validates.

see also: Bug 29541 and Bug 31644

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org