cfmail fails on address with leading dot
Since loading Update 10 for Cold Fusion 2016, cfmail fails when sending email to an address with a leading dot. When using the address ".johnsmith(at)yahoo.com", the IsValid() function returns true, but cfmail fails with the error "Empty label is not a legal name". Prior to loading the update, emails to this customer were sent successfully.
This appears to be related to IDN.toASCII:
java.lang.IllegalArgumentException: Empty label is not a legal name
at java.net.IDN.toASCIIInternal(Unknown Source)
at java.net.IDN.toASCII(Unknown Source)
at java.net.IDN.toASCII(Unknown Source)
at coldfusion.mail.MailImpl._toIDNEmail(MailImpl.java:578)
at coldfusion.mail.MailImpl.toIDNEmail(MailImpl.java:566)
at coldfusion.mail.MailImpl.setInternetAddress(MailImpl.java:541)
at coldfusion.tagext.net.MailTag.validate(MailTag.java:737)
at coldfusion.tagext.net.MailTag.processAttributes(MailTag.java:846)
I found a openJDK bug report on this issue, but it was closed as "not an issue".
[JDK-8081570] IDN.toASCII failing on leading dots - Java Bug System
Has anyone else experienced this problem? If so, is there a work-around?
Thanks,
Neil
