← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1306835] Re: V3 list users filter by email address throws exception

 

** Changed in: openstack-manuals
       Status: In Progress => Fix Released

** Changed in: openstack-manuals
    Milestone: None => juno

** Changed in: openstack-manuals
   Importance: Undecided => Medium

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1306835

Title:
  V3 list users  filter by email address throws exception

Status in OpenStack Identity (Keystone):
  Fix Released
Status in Keystone icehouse series:
  Fix Released
Status in OpenStack Manuals:
  Fix Released

Bug description:
  V3 list_user filter by email throws excpetion. There is no such
  attribute email.

  keystone.common.wsgi): 2014-04-11 23:09:00,422 ERROR type object 'User' has no attribute 'email'
  Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/keystone/common/wsgi.py", line 206, in __call__
      result = method(context, **params)
    File "/usr/lib/python2.7/dist-packages/keystone/common/controller.py", line 183, in wrapper
      return f(self, context, filters, **kwargs)
    File "/usr/lib/python2.7/dist-packages/keystone/identity/controllers.py", line 284, in list_users
      hints=hints)
    File "/usr/lib/python2.7/dist-packages/keystone/common/manager.py", line 52, in wrapper
      return f(self, *args, **kwargs)
    File "/usr/lib/python2.7/dist-packages/keystone/identity/core.py", line 189, in wrapper
      return f(self, *args, **kwargs)
    File "/usr/lib/python2.7/dist-packages/keystone/identity/core.py", line 328, in list_users
      ref_list = driver.list_users(hints or driver_hints.Hints())
    File "/usr/lib/python2.7/dist-packages/keystone/common/sql/core.py", line 227, in wrapper
      return f(self, hints, *args, **kwargs)
    File "/usr/lib/python2.7/dist-packages/keystone/identity/backends/sql.py", line 132, in list_users
      user_refs = sql.filter_limit_query(User, query, hints)
    File "/usr/lib/python2.7/dist-packages/keystone/common/sql/core.py", line 374, in filter_limit_query
      query = _filter(model, query, hints)
    File "/usr/lib/python2.7/dist-packages/keystone/common/sql/core.py", line 326, in _filter
      filter_dict = exact_filter(model, filter_, filter_dict, hints)
    File "/usr/lib/python2.7/dist-packages/keystone/common/sql/core.py", line 312, in exact_filter
      if isinstance(getattr(model, key).property.columns[0].type,
  AttributeError: type object 'User' has no attribute 'email'

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


References