cinder/cinder/api/v1
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
..
__init__.py Moving api v1 implementation into v1 directory 2012-11-21 21:26:40 -08:00
limits.py Moving api v1 implementation into v1 directory 2012-11-21 21:26:40 -08:00
router.py Implement metadata options for snapshots 2013-02-20 23:11:05 -07:00
snapshot_metadata.py Fix and enable gating on H401 2013-06-25 16:26:43 +02:00
snapshots.py Pop out 'offset' and 'limit' before use for filter 2013-07-30 13:16:18 +08:00
types.py Make pep8 checks a bit stricter. 2012-11-26 16:57:15 -07:00
volume_metadata.py Fix and enable gating on H401 2013-06-25 16:26:43 +02:00
volumes.py Pop out 'offset' and 'limit' before use for filter 2013-07-30 13:16:18 +08:00