We're updating the issue view to help you get more done. 

E-mail validator does not allow IDN ascii domain labels

Description

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.

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

Environment

None

Status

Assignee

Guillaume Smet

Reporter

Andreas Marienborg

Labels

None

Worked in

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Community Help Wanted

None

Suitable for new contributors

None

Requires Release Note

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Affects versions

6.0.4.Final

Priority

Minor