Actions
Defect #42584
closedNoMethodError when creating a user with an invalid email address and domain restrictions are enabled
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Fixed
Affected version:
Description
When "Allowed email domains" or "Disallowed email domains" are configured in Administration > Settings, attempting to create a new user with an invalid email address that does not contain an '@
' causes a NoMethodError
in EmailAddress.domain_in?
during validation. As a result, the user sees an "Internal Server Error" page.
The attached patch fixes the issue.
Files
Updated by Go MAEDA about 1 month ago
I have updated the patch.
The updated patch also skips domain validation to avoid displaying an error message with an empty domain name, such as "Email contains a domain not allowed ()".
Updated by Go MAEDA about 1 month ago
- Target version changed from Candidate for next minor release to 5.1.8
Setting the target version to 5.1.8.
Updated by Marius BĂLTEANU about 1 month ago
- Status changed from New to Resolved
- Assignee set to Go MAEDA
- Resolution set to Fixed
Actions