TypeError: sequence item 0: expected string in users_get_by_tenant_get_page

Bug #856846 reported by Anthony Young
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Undecided
Unassigned

Bug Description

When calling: /v2.0/tenants/2/users?fresh=1316729221.29

I get the following error:

root : ERROR sequence item 0: expected string, long found
Traceback (most recent call last):
  File "/opt/keystone/keystone/utils.py", line 62, in check_error
    return func(*args, **kwargs)
  File "/opt/keystone/keystone/controllers/user.py", line 69, in get_tenant_users
    tenant_id, marker, limit, url)
  File "/opt/keystone/keystone/logic/service.py", line 328, in get_tenant_users
    limit)
  File "/opt/keystone/keystone/backends/sqlalchemy/api/user.py", line 260, in users_get_by_tenant_get_page
    filter("id in ('%s')" % "','".join(user_ids)).\
TypeError: sequence item 0: expected string, long found

Patch to follow

Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : A change has been merged to openstack/keystone

Reviewed: https://review.openstack.org/546
Committed: http://github.com/openstack/keystone/commit/538c605bf2656bee01323d3753e7052296c04370
Submitter: Jenkins
Branch: master

 status fixcommitted
 done

commit 538c605bf2656bee01323d3753e7052296c04370
Author: Anthony Young <email address hidden>
Date: Thu Sep 22 15:12:07 2011 -0700

    Fix for bug 856846 - cast ints to string in users_get_by_tenant_get_page so that they can be joined

    Change-Id: I4bc86a74acb8999e37a60746da4e646a9c66a2bf

Changed in keystone:
status: New → Fix Committed
Thierry Carrez (ttx)
Changed in keystone:
status: Fix Committed → Fix Released
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.