cinder/cinder
Steven Kaufer 5cee4f4107 get volumes API does not handle limit=0
This bug fixes a regression from bug 1288429, where the "next"
link is added when the number of volumes returned is the
maximum limit (even if the "limit" param is not specified).

The regression is hit when a "limit" of 0 is specified; in this
case the logic to create the "next" link is still executed and an
exception is thrown. The fix is to add back in the "if" check that
implictly checks if the max_items is non-0.

Test code was also created to verify that a limit of 0 is handled
correctly.

Change-Id: I92f9afb9b0e2c627d2c77f67fa026b731903384f
Closes-bug: 1289124
2014-03-08 02:11:27 +00:00
..
api get volumes API does not handle limit=0 2014-03-08 02:11:27 +00:00
backup Remove str() from LOG.* and exceptions 2014-03-04 14:25:10 -06:00
brick Re-enable lazy translation 2014-03-06 16:08:25 +00:00
common Re-enable lazy translation 2014-03-06 16:08:25 +00:00
compute Fix wrong example of "nova_endpoint_template" 2014-02-14 11:19:56 +08:00
db Re-enable lazy translation 2014-03-06 16:08:25 +00:00
image Remove str() from LOG.* and exceptions 2014-03-04 14:25:10 -06:00
keymgr Re-enable lazy translation 2014-03-06 16:08:25 +00:00
locale Imported Translations from Transifex 2014-02-15 06:17:16 +00:00
openstack Merge "Sync latest Oslo config code for i18n" 2014-03-07 18:28:13 +00:00
scheduler Volume manage/unmanage support 2014-03-04 19:54:19 +02:00
testing updating testing readme with more current information. 2014-02-26 09:21:13 -05:00
tests get volumes API does not handle limit=0 2014-03-08 02:11:27 +00:00
transfer Fix all occurences of H404 Hacking warning 2013-10-13 10:36:27 +03:00
volume Clean Up EMC VNX Direct Driver in Cinder 2014-03-06 19:22:34 -05:00
zonemanager Remove str() from LOG.* and exceptions 2014-03-04 14:25:10 -06:00
__init__.py Remove vim header 2013-12-30 18:53:02 -06:00
context.py Remove vim header 2013-12-30 18:53:02 -06:00
exception.py Re-enable lazy translation 2014-03-06 16:08:25 +00:00
flow_utils.py Create structure of flows' packages 2014-01-24 12:44:56 +02:00
manager.py Remove vim header 2013-12-30 18:53:02 -06:00
policy.py Re-enable lazy translation 2014-03-06 16:08:25 +00:00
quota.py Do not show quota of removed volume types in Default Quotas panel 2014-01-20 10:20:36 -08:00
quota_utils.py Add ability to modify volume type 2014-01-06 22:02:09 +02:00
service.py Merge "Sync RPC module from Oslo" 2014-02-07 01:55:49 +00:00
test.py Remove str() from LOG.* and exceptions 2014-03-04 14:25:10 -06:00
units.py Remove vim header 2013-12-30 18:53:02 -06:00
utils.py Merge "Remove str() from LOG.* and exceptions" 2014-03-05 14:49:44 +00:00
version.py Remove vim header 2013-12-30 18:53:02 -06:00
wsgi.py Fix webob.exc.HTTPForbidden parameter miss 2014-02-24 20:49:29 +09:00