EmailValidator.isValid sometimes throws an exception instead of returning false

Description

In 4.3, EmailValidator was updated to pass the value through IDN.toAscii before applying the regular expression. The Javadocs for IDN.toAscii document a set of cases which can result in an IllegalArgumentException being thrown, but EmailValidator does not attempt to catch that exception. As a result, in certain circumstances, rather than returning false the validator throws an exception. That, in turn, results in this:

This situation was not possible in 4.2.

Environment

None

Assignee

Unassigned

Reporter

Bryan Turner

Labels

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Suitable for new contributors

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Affects versions

Priority

Major
Configure