← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1014809] Re: Pagination on tenant_list is broken (AdminAPI)

 

Unassigning due to inactivity.

** Changed in: keystone
     Assignee: Tomasz Paszkowski (ss7pro) => (unassigned)

** Changed in: keystone
       Status: Triaged => Invalid

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

Title:
  Pagination on tenant_list is broken (AdminAPI)

Status in OpenStack Identity (Keystone):
  Invalid

Bug description:
  Pagination on tenant_list in admin API is broken.  Query with marker
  parameter returns empty results.

  Patch below fixes the problem:

  
  --- identity/dist.core.py	2012-06-18 21:27:17.875154740 +0200
  +++ identity/core.py	2012-06-18 21:26:12.083154811 +0200
  @@ -342,7 +342,7 @@
           limit = kwargs.get('limit')
           if limit is not None:
               try:
  -                limit = int(limit)
  +                limit = int(limit) + page_idx
                   if limit < 0:
                       raise AssertionError()
               except (ValueError, AssertionError):

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