In testing, I noticed that applying the limit or marker filters when listing flavors appears to have no effect on the response. See the following two examples:
curl -i -H "X-Auth-Token: 8ad370f6-fe8b-441b-af89-0d08f7e3a898" http://localhost:8774/v1.1/dwalleck-project/flavors?limit=2
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 2177
Date: Fri, 06 Jan 2012 21:04:35 GMT
Connection: close
{"flavors": [{"id": "1", "links": [{"href": "http://localhost:8774/v1.1/dwalleck-project/flavors/1", "rel": "self"}, {"href": "http://localhost:8774/dwalleck-project/flavors/1", "rel": "bookmark"}], "name": "256 slice"}, {"id": "4", "links": [{"href": "http://localhost:8774/v1.1/dwalleck-project/flavors/4", "rel": "self"}, {"href": "http://localhost:8774/dwalleck-project/flavors/4", "rel": "bookmark"}], "name": "2GB slice"}, {"id": "5", "links": [{"href": "http://localhost:8774/v1.1/dwalleck-project/flavors/5", "rel": "self"}, {"href": "http://localhost:8774/dwalleck-project/flavors/5", "rel": "bookmark"}], "name": "4GB slice"}, {"id": "3", "links": [{"href": "http://localhost:8774/v1.1/dwalleck-project/flavors/3", "rel": "self"}, {"href": "http://localhost:8774/dwalleck-project/flavors/3", "rel": "bookmark"}], "name": "1GB slice"}, {"id": "6", "links": [{"href": "http://localhost:8774/v1.1/dwalleck-project/flavors/6", "rel": "self"}, {"href": "http://localhost:8774/dwalleck-project/flavors/6", "rel": "bookmark"}], "name": "8GB slice"}, {"id": "8", "links": [{"href": "http://localhost:8774/v1.1/dwalleck-project/flavors/8", "rel": "self"}, {"href": "http://localhost:8774/dwalleck-project/flavors/8", "rel": "bookmark"}], "name": "30GB slice"}, {"id": "2", "links": [{"href": "http://localhost:8774/v1.1/dwalleck-project/flavors/2", "rel": "self"}, {"href": "http://localhost:8774/dwalleck-project/flavors/2", "rel": "bookmark"}], "name": "512 slice"}, {"id": "7", "links": [{"href": "http://localhost:8774/v1.1/dwalleck-project/flavors/7", "rel": "self"}, {"href": "http://localhost:8774/dwalleck-project/flavors/7", "rel": "bookmark"}], "name": "15.5GB slice"}]}
(received: all flavors. Expected: two flavors returned with a "next" link to the next set of results)
curl -i -H "X-Auth-Token: 8ad370f6-fe8b-441b-af89-0d08f7e3a898" http://localhost:8774/v1.1/dwalleck-project/flavors?marker=1
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 2177
Date: Fri, 06 Jan 2012 21:07:56 GMT
Connection: close
{"flavors": [{"id": "1", "links": [{"href": "http://localhost:8774/v1.1/dwalleck-project/flavors/1", "rel": "self"}, {"href": "http://localhost:8774/dwalleck-project/flavors/1", "rel": "bookmark"}], "name": "256 slice"}, {"id": "4", "links": [{"href": "http://localhost:8774/v1.1/dwalleck-project/flavors/4", "rel": "self"}, {"href": "http://localhost:8774/dwalleck-project/flavors/4", "rel": "bookmark"}], "name": "2GB slice"}, {"id": "5", "links": [{"href": "http://localhost:8774/v1.1/dwalleck-project/flavors/5", "rel": "self"}, {"href": "http://localhost:8774/dwalleck-project/flavors/5", "rel": "bookmark"}], "name": "4GB slice"}, {"id": "3", "links": [{"href": "http://localhost:8774/v1.1/dwalleck-project/flavors/3", "rel": "self"}, {"href": "http://localhost:8774/dwalleck-project/flavors/3", "rel": "bookmark"}], "name": "1GB slice"}, {"id": "6", "links": [{"href": "http://localhost:8774/v1.1/dwalleck-project/flavors/6", "rel": "self"}, {"href": "http://localhost:8774/dwalleck-project/flavors/6", "rel": "bookmark"}], "name": "8GB slice"}, {"id": "8", "links": [{"href": "http://localhost:8774/v1.1/dwalleck-project/flavors/8", "rel": "self"}, {"href": "http://localhost:8774/dwalleck-project/flavors/8", "rel": "bookmark"}], "name": "30GB slice"}, {"id": "2", "links": [{"href": "http://localhost:8774/v1.1/dwalleck-project/flavors/2", "rel": "self"}, {"href": "http://localhost:8774/dwalleck-project/flavors/2", "rel": "bookmark"}], "name": "512 slice"}, {"id": "7", "links": [{"href": "http://localhost:8774/v1.1/dwalleck-project/flavors/7", "rel": "self"}, {"href": "http://localhost:8774/dwalleck-project/flavors/7", "rel": "bookmark"}], "name": "15.5GB slice"}]}
(received: all flavors. Expected: all flavors except the flavor with id 1)
Fix proposed to branch: master /review. openstack. org/3316
Review: https:/