Project

General

Profile

Actions

Defect #42584

closed

NoMethodError when creating a user with an invalid email address and domain restrictions are enabled

Added by Go MAEDA 4 days ago. Updated about 9 hours ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Administration
Target version:
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

Actions

Also available in: Atom PDF