cinder/cinder/api
xiaoxi_chen 08af981ffc Pop out 'offset' and 'limit' before use for filter
In previous code of _items() from api/v{1,2}/snapshots.py,
and also the _items)_ from api/v1/volume.py.we didn't pop
out the 'offset' and 'limit' fields from HTTP get params
before we use such params for filter.This is the root cause
for bug #1205956

For non-admin user, since 'offset' and 'limit' is not in the
allowed_search_options, so the volumes.remove_invalid_options
will help to filter them out. As a result, it walks around this
bug.

But for admin user,the volumes.remove_invalid_options will not
try to filter the search_options.So for admin user, the 'limit'
will appear in search_options, then obviously get no result.

fixed bug #1205956

Change-Id: Ib1a66c9d104ac52d6eae18be7f06d02985d4c2fd
2013-07-30 13:16:18 +08:00
..
contrib Migration for detached volumes with no snaps. 2013-07-24 16:05:50 +03:00
middleware Add the project name into CinderKeystoneContext. 2013-06-20 13:47:48 +08:00
openstack Run flake8 also on cinder/*/openstack 2013-06-27 23:34:31 +02:00
schemas Moving common api code into cinder.api 2012-11-21 21:26:39 -08:00
v1 Pop out 'offset' and 'limit' before use for filter 2013-07-30 13:16:18 +08:00
v2 Pop out 'offset' and 'limit' before use for filter 2013-07-30 13:16:18 +08:00
views Add os-availability-zone extension 2013-06-28 07:26:34 -07:00
__init__.py Replace FLAGS with cfg.CONF in api 2013-06-10 17:56:26 +04:00
auth.py Deprecating old dot path locations for Folsom configs 2013-05-13 22:52:42 -07:00
common.py Register used CONF entries in cinder.api.common.py 2013-06-25 08:28:12 -06:00
extensions.py Remove usage of locals() for formatting from cinder.api.* 2013-06-14 19:02:47 +08:00
sizelimit.py Deprecating old dot path locations for Folsom configs 2013-05-13 22:52:42 -07:00
urlmap.py Make pep8 checks a bit stricter. 2012-11-26 16:57:15 -07:00
versions.py Replace FLAGS with cfg.CONF in api 2013-06-10 17:56:26 +04:00
xmlutil.py Remove usage of locals() for formatting from cinder.api.* 2013-06-14 19:02:47 +08:00