Email shouldn't be a mandatory attribute
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Medium
|
Julie Pichon | ||
Grizzly |
Fix Released
|
Medium
|
Bernhard M. Wiedemann | ||
Havana |
Fix Released
|
Medium
|
Julie Pichon |
Bug Description
When using a LDAP backend, it's possible that a user won't have the "email" attribute defined, however it should still be possible to edit the other fields.
Steps to reproduce (in an environment with keystone using a LDAP backend):
1. Log in as admin
2. Go to the Users dashboard
3. Select a user that doesn't have an email defined
Expected result:
4. "Edit user" modal opens
Actual result:
4. Error 500
Traceback:
File "/usr/lib/
154. form = self.get_
File "/opt/stack/
82. return form_class(
File "/usr/lib/
41. kwargs = {'initial': self.get_initial()}
File "/opt/stack/
103. 'email': user.email}
File "/opt/stack/
425. raise AttributeError(k)
Exception Type: AttributeError at /admin/
Exception Value: email
Changed in horizon: | |
status: | Fix Committed → Fix Released |
tags: | removed: in-stable-grizzly |
Changed in horizon: | |
milestone: | icehouse-2 → 2014.1 |
Fix proposed to branch: master /review. openstack. org/61837
Review: https:/