← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1260423] Re: Email shouldn't be a mandatory attribute

 

** Also affects: horizon/havana
   Importance: Undecided
       Status: New

** Changed in: horizon/havana
   Importance: Undecided => Medium

** Changed in: horizon/havana
     Assignee: (unassigned) => Julie Pichon (jpichon)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1260423

Title:
  Email shouldn't be a mandatory attribute

Status in OpenStack Dashboard (Horizon):
  In Progress
Status in OpenStack Dashboard (Horizon) havana series:
  New

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/python2.7/site-packages/django/views/generic/edit.py" in get
    154.         form = self.get_form(form_class)
  File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/forms/views.py" in get_form
    82.         return form_class(self.request, **self.get_form_kwargs())
  File "/usr/lib/python2.7/site-packages/django/views/generic/edit.py" in get_form_kwargs
    41.         kwargs = {'initial': self.get_initial()}
  File "/opt/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/admin/users/views.py" in get_initial
    103.                 'email': user.email}
  File "/opt/stack/python-keystoneclient/keystoneclient/base.py" in __getattr__
    425.             raise AttributeError(k)

  Exception Type: AttributeError at /admin/users/e005aa43475b403c8babdff86ea27c37/update/
  Exception Value: email

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1260423/+subscriptions


References