[2.x, API] Creating a user with an email that is already in use returns an unfriendly error message
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Invalid
|
High
|
Unassigned |
Bug Description
Given that another user exists with the email <email address hidden>, if we perform the following command:
$ maas maas users create username=bren <email address hidden> password=brendand is_superuser=0
The response from MAAS is:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
<html xmlns="http://
<head>
<title>Error: Conflict Error</title>
</head>
<body>
<h2>
Conflict error. Try your request again, as it will most likely succeed.
</h2>
</body>
</html>
The error code 409 is fine, but the text needs to be something helpful, such as 'email already in use'
Changed in maas: | |
importance: | Undecided → Medium |
status: | New → Triaged |
milestone: | none → 2.2.0 |
tags: | added: papercut |
Changed in maas: | |
milestone: | 2.2.0 → 2.2.x |
Changed in maas: | |
milestone: | 2.2.x → 2.3.x |
importance: | Medium → High |
summary: |
- Creating a user with an email that is already in use returns an - unfriendly error message + [2.x, API] Creating a user with an email that is already in use returns + an unfriendly error message |
... and not something obviously bogus like "try again: a glitch in space-time may mean that your colleague Bren will not exist on your next attempt".