Uploaded image for project: 'Hibernate Validator'
  1. HV-1516

E-mail validator does not allow IDN ascii domain labels

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.0.4.Final
    • Fix Version/s: 6.0.5.Final
    • Component/s: validators
    • Labels:
      None

      Description

      HV-472 Closed implemented support for IDN in the EmailValidator, but in commit db8c4f0 in january 2017 the implementation was changed (spesifically the domain validation was moved to a new class). This new implementation of domain validation does not allow -- in domain labels, and as such, the ascii representation of IDN domain labels fails to validate, even though most email programs will accept it, since the domain is in fact a valid ascii domain name.

      One quick example is for instance nothing@xn--fken-gra.no (the domain isn't registered, but should serve for this example.

      	@Test
      	public void testIDNExpanded() throws Exception {
      		isValidEmail("nothing@xn--fken-gra.no");
      	}
      

        Attachments

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: