User creation fails when using a duplicate email address
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
High
|
Gabriel Hurley |
Bug Description
When I try and create a user with an Email address that is already used by another user in the system, the user creation fails with a nasty error.
Affected version: diablo
To reproduce:
1. Create a new tenant "tenant-1"
2. Create a user "user-1" with
email address = <email address hidden>
primary tenant = tenant-1
RESULT = SUCCESS
3. Create a user "user-2" with
email address = <email address hidden>
primary tenant = tenant-1
RESULT = SUCCESS
4. Create a user "user-3" with
email address = <email address hidden>
primary tenant = tenant-1
RESULT = ERROR*
5. Create a user "user-3" with
email address = <email address hidden>
primary tenant = tenant-1
RESULT = ERROR*
6. Create a user "user-3" with
email address = <email address hidden>
primary tenant = tenant-1
RESULT = SUCCESS
* ---Exception---
KeyError at /syspanel/
Environment:
Request Method: POST
Request URL: http://
Django Version: 1.3
Python Version: 2.6.7
Installed Applications:
['dashboard',
'django.
'django.
'django.
'django.
'django_
'django_
'savage.dash',
'mailer']
Installed Middleware:
('django.
'django.
'django.
'django.
'django_
'django.
'django.
'dashboard.
Traceback:
File "/usr/lib/
111. response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/
23. return view_func(request, *args, **kwargs)
File "/usr/lib/
37. return fn(*args, **kwargs)
File "/usr/lib/
208. True)
File "/usr/lib/
666. user_id, email, password, tenant_id, enabled))
File "/usr/lib/
48. return self._create(
File "/usr/lib/
41. return self.resource_
Exception Type: KeyError at /syspanel/
Exception Value: 'user'
description: | updated |
description: | updated |
Changed in horizon: | |
importance: | Undecided → High |
milestone: | none → essex-2 |
Changed in horizon: | |
status: | Fix Committed → Fix Released |
Changed in horizon: | |
milestone: | essex-2 → 2012.1 |
This was fixed in a previous commit post-diablo. The current behavior is a nice error alert informing you that a user with that email address already exists.