Exceptions when user email field is empty

Bug #1479727 reported by Zhenguo Niu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Undecided
Zhenguo Niu

Bug Description

Keystone doesn't return a user email in it's json response if the field is empty, which will raise exceptions when loading users table:

The attribute email doesn't exist on <User {u'username': u'nova', u'enabled': True, u'name': u'nova', u'id': u'1b57074e239b49c8b77175d0107dd2a1'}>.
The attribute email doesn't exist on <User {u'username': u'glance', u'enabled': True, u'name': u'glance', u'id': u'24aa02268a22413b9cb922283273387b'}>.
The attribute email doesn't exist on <User {u'username': u'cinder', u'enabled': True, u'name': u'cinder', u'id': u'532d95cdcd914e95a0d29178161dba65'}>.
The attribute email doesn't exist on <User {u'username': u'admin', u'enabled': True, u'name': u'admin', u'id': u'67bffb7f749a40fa898453ebf5ef83bb'}>.
The attribute email doesn't exist on <User {u'username': u'neutron', u'enabled': True, u'name': u'neutron', u'id': u'a5f96e136c124737be25e59ec66af08b'}>.
The attribute email doesn't exist on <User {u'username': u'ironic', u'enabled': True, u'name': u'ironic', u'id': u'c09d491925ed42709a7aaf9b7fe50928'}>.

Changed in horizon:
assignee: nobody → Zhenguo Niu (niu-zglinux)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

Fix proposed to branch: master
Review: https://review.openstack.org/207392

Changed in horizon:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/207392
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=f3ad0081b05611071d91f7cb50e44bad2c6d8f52
Submitter: Jenkins
Branch: master

commit f3ad0081b05611071d91f7cb50e44bad2c6d8f52
Author: Zhenguo Niu <email address hidden>
Date: Thu Jul 30 18:46:18 2015 +0800

    User email no longer raises exceptions if missing

    Change-Id: Iec9b647781f335d6f933041377fc33b22bc264a2
    Closes-Bug: #1479727

Changed in horizon:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in horizon:
milestone: none → liberty-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: liberty-3 → 8.0.0
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.