Project

Profile

Help

Issue #8318

closed

Sanitize input values in the methods implementing the pagination

Added by lmjachky over 3 years ago. Updated over 3 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Sprint/Milestone:
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>

Also available in: Atom PDF