/services?name=<name> API fails when using list_limit
When using list_limit configuration option in Default section of
keystone.conf, the /services?name=<service_name> API fails to find
the service if list_limit value is smaller than the total number
of services and the searched service is not among the first
'list_limit' services. The API should first filter by name and
only afterwards truncate the result list.
Also, this patch fixes setting the 'truncated' attribute of the
driver's hint.limit object when truncating the list outside of
driver_hints.truncated decorator, problem exposed by fixing the
problem described in the first paragraph.
Reviewed: https:/ /review. openstack. org/331790 /git.openstack. org/cgit/ openstack/ keystone/ commit/ ?id=6a9a9f002f4 4c15d40cf890eef d03a4ab6172b0b
Committed: https:/
Submitter: Jenkins
Branch: master
commit 6a9a9f002f44c15 d40cf890eefd03a 4ab6172b0b
Author: Roxana Gherle <email address hidden>
Date: Mon Jun 20 10:53:36 2016 -0700
/services? name=<name> API fails when using list_limit
When using list_limit configuration option in Default section of name=<service_ name> API fails to find
keystone.conf, the /services?
the service if list_limit value is smaller than the total number
of services and the searched service is not among the first
'list_limit' services. The API should first filter by name and
only afterwards truncate the result list.
Also, this patch fixes setting the 'truncated' attribute of the hints.truncated decorator, problem exposed by fixing the
driver's hint.limit object when truncating the list outside of
driver_
problem described in the first paragraph.
Closes-Bug: #1594482 f94a1e5bce5a894 f7f4d26a8de
Change-Id: I832f542c3cb0fa