Uploaded image for project: 'Commons Validator'
  1. Commons Validator
  2. VALIDATOR-114

[validator] Email: inexisting dashes and TLD erroneously accepted

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Bugzilla Id:
      33409

      Description

      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

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

      see also: COM-1356 and COM-1647

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ralfhauser Ralf Hauser
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: