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

[validator] Email: inexisting dashes and TLD erroneously accepted

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    • 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

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

            Dates

              Created:
              Updated:
              Resolved: