MAX_PAGE_SIZE not being enforced if "limit" query param is missing #18150
Labels
severity: low
Does not significantly disrupt application functionality, or a workaround is available
status: accepted
This issue has been accepted for implementation
type: bug
A confirmed report of unexpected behavior in the application
Deployment Type
Self-hosted
Triage priority
I volunteer to perform this work (if approved)
NetBox Version
v4.1.7
Python Version
3.10
Steps to Reproduce
Set MAX_PAGE_SIZE to a small number (such as 30) in
configuration.py
Access http://127.0.0.1:8000/api/dcim/interfaces/
Expected Behavior
Results should be paginated by 30, and
next
andprevious
links should have correctlimit
andoffset
values corresponding to increments of 30Observed Behavior
The page size defaults to
PAGINATE_COUNT
(default 50); and thenext
url haslimit
andoffset
values corresponding to 50. However if you follow that link, the results are paginated by 30, as are thenext
andprevious
urls.The text was updated successfully, but these errors were encountered: