Details
-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
9.3.0, 9.2.1, 9.1.2, 8.0.13, 8.1.12, 9.0.4, 8.2.9
-
None
-
Severity 3 - Minor
-
Description
Issue Summary
This is reproducible on Data Center:
The start-index and max-result REST API parameters produce no effect when used with the /rest/api/latest/queue endpoint.
Steps to Reproduce
- Queue several builds in Bamboo (10 for example)
- Run:
$ curl -s -H "Accept: application/json" -uadmin:admin -X GET 'https://bamboo.mydomain.net/rest/api/latest/queue?expand=queuedBuilds.queuedBuild&max-result=2&start-index=2'
Expected Results
- The REST endpoint should return only 2 results, from index 2 and 3
- max-result and start-index should reflect the custom setting
Actual Results
- The REST endpoint returns all queued builds
- max-result and start-index are ignored
Workaround
Use a tool such as jq to paginate the results