Actions
Issue #8318
closedSanitize input values in the methods implementing the pagination
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Easy Fix
Sprint:
Sprint 92
Quarter:
Description
A negative value defined for the query parameter n
causes a runtime error:
(pulp) [vagrant@pulp3-source-fedora32 backup]$ http http://localhost:24817/v2/_catalog?n=-1
HTTP/1.1 500 Internal Server Error
Access-Control-Expose-Headers: Correlation-ID
Connection: close
Content-Length: 27
Content-Type: text/html
Correlation-ID: 6d0f66a77d96458bb10aacda31d673da
Date: Tue, 02 Mar 2021 14:37:36 GMT
Server: gunicorn/20.0.4
X-Frame-Options: SAMEORIGIN
<h1>Server Error (500)</h1>
Updated by lmjachky over 3 years ago
- Tracker changed from Task to Issue
- Severity set to 2. Medium
- Triaged set to No
Updated by mdellweg over 3 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to mdellweg
Updated by pulpbot over 3 years ago
- Status changed from ASSIGNED to POST
Added by mdellweg over 3 years ago
Added by mdellweg over 3 years ago
Revision b276dbb4 | View on GitHub
Sanitize page size in pagination classes
This will prevent the request to result in a 500 response when a negative page size is requested.
Updated by mdellweg over 3 years ago
- Status changed from POST to MODIFIED
Applied in changeset b276dbb431207b6bf9b71ebeb4983bb21bfbe3f9.
Updated by pulpbot over 3 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Actions
Sanitize page size in pagination classes
This will prevent the request to result in a 500 response when a negative page size is requested.
fixes #8318 https://pulp.plan.io/issues/8318