Skip to content

MAX_PAGE_SIZE not being enforced if "limit" query param is missing #18150

Closed
@bctiemann

Description

@bctiemann

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 and previous links should have correct limit and offset values corresponding to increments of 30

Observed Behavior

The page size defaults to PAGINATE_COUNT (default 50); and the next url has limit and offset values corresponding to 50. However if you follow that link, the results are paginated by 30, as are the next and previous urls.

Metadata

Metadata

Assignees

Labels

severity: lowDoes not significantly disrupt application functionality, or a workaround is availablestatus: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions