MAAS new user creation requires E-Mail address, throws wrong error when not provided

Bug #1274017 reported by Dan Poler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
High
Raphaël Badin

Bug Description

Steps to reproduce:
Log into MAAS
Click on the gear
Click "Add User"
Give the user a username and full name
Do not give the user an email address
Set the user's password
Do not make the user an administrator
Click Add User

Expected behavior
The user should be created

Observed behavior
The creation will error out with"User with this E-mail address already exists."

Why this is a problem
1. Whereas the username, password, and password confirmation fields are marked as required in the GUI, the E-Mail address is not marked as required. Either mark the field as required, or allow the creation to succeed as outlined above

2. The error is incorrect. When no email address is specified, the E-Mail address cannot possibly already exist.

Related branches

Revision history for this message
Dan Poler (l-dan) wrote :
Revision history for this message
Julian Edwards (julian-edwards) wrote :

Thanks for the bug.

Changed in maas:
status: New → Triaged
importance: Undecided → High
milestone: none → 14.04
Revision history for this message
Raphaël Badin (rvb) wrote :

> 2. The error is incorrect. When no email address is specified, the E-Mail address cannot possibly already exist.

There is a MAAS "system user" which has an empty email address, and that's why you're getting this error.

But you're right about the fact that the error is confusing and we should fix that.

Raphaël Badin (rvb)
Changed in maas:
assignee: nobody → Raphaël Badin (rvb)
status: Triaged → In Progress
Raphaël Badin (rvb)
Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.