No error in case of max limit violation
Bug #1744640 reported by
Shiv Kumar
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glare |
Confirmed
|
Low
|
Unassigned |
Bug Description
If I pass a limit more than the allowed max limit, Glare does not throw any error. It will give the max limit records and next page link will have the user passed limit. eg:
If Glare max limit is 200 and I pass 1000 as limit.
Glare gives the below response:
"next": "/artifacts/
"all":{ 200 records...}
Expected Response:
400 Bad Request.
Changed in glare: | |
status: | New → Confirmed |
importance: | Undecided → Low |
To post a comment you must log in.
Hi Mike,
changing this line to a validation will solve this issue. But looks like it was kept here intentional. should I proceed with the change?
https:/ /github. com/openstack/ glare/blob/ 2f5a95cf1da3d82 25432f0d7f97d07 f0129af42c/ glare/api/ v1/resource. py#L162