API next
json key loops on itself with MAX_PAGE_SIZE=0 and limit=0
#2442
Labels
status: accepted
This issue has been accepted for implementation
type: bug
A confirmed report of unexpected behavior in the application
Environment
Steps to Reproduce
Set
MAX_PAGE_SIZE=0
to disable the pagination, and do a GET on a list of items (/api/dcim/devices/
for example) with the GET parameterlimit=0
.Expected Behavior
The
next
value in the response should benull
, as the pagination is disabled.Observed Behavior
The
next
is looping on the same GET query, withlimit=0&offset=0
(/api/dcim/devices/?limit=0&offset=0
for example). It is an issue for some API clients that just loop over thenext
key until it is null.The text was updated successfully, but these errors were encountered: