email addresses with german umlauts are not validated correctly

Description

email addresses with german umlauts (and I'm sure also for all other non-ascii characters) like test@müller.de are not validated correctly.

The result of isValid("email","test@müller.de") is false but should be true.

When using this address in cfmail like
<cfmail from="..." to="test@müller.de" ...>
results in an error saying
One of the following attribtues must be defined (to, cc, bcc)

a workaround is converting the email address to punycode manually:
createobject("java", "java.net.IDN").toAscii("test@müller.de")

But this should be done automatically by Lucee. The developer exception is, that email addresses like this are recognized as valid addresses, because they are.

This is really a blocker, because it means, that all applications validating these addresses fail with emails with non-ascii characters!

Environment

None

Activity

Show:
Pothys - MitrahSoft
January 29, 2018, 1:14 PM

I've confirmed the issue happened on latest version of lucee 5.2.6.51. In lucee cfmail "to" attribute has a value non-ascii characters it throw error like "One of the following attribtues must be defined [ to, cc, bcc ]". In ACF also doesn't accepts non-Ascii character it throws error like "The value of the attribute to, which is currently test@müller.de, is invalid." will confirm about the issue.

Michael Offner
February 12, 2018, 12:43 PM
Fixed

Assignee

Michael Offner

Reporter

Michael Hnat

Priority

Blocker

Labels

Fix versions

Sprint

None

Affects versions