Project

Profile

Help

Issue #2976

closed

500 error when I try to create a username with more than 150 chars

Added by daviddavis over 6 years ago. Updated about 5 years ago.

Status:
CLOSED - DUPLICATE
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Easy Fix
Sprint:
Quarter:

Description

Steps to reproduce:

http POST :8000/api/v3/users/ username='abcaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' password='ok'

Result:

HTTP/1.0 500 Internal Server Error
Content-Length: 22193
Content-Type: text/plain
Date: Mon, 14 Aug 2017 21:12:18 GMT
Server: WSGIServer/0.2 CPython/3.5.3
Vary: Cookie
X-Frame-Options: SAMEORIGIN

DataError at /api/v3/users/
value too long for type character varying(150)
...

We should probably check other text fields as well like repo name.


Related issues

Related to Pulp - Issue #2975: Username field doesn't validate charactersCLOSED - DUPLICATEActions
Related to Pulp - Story #2984: As an API user, I get user friendly feedback when I use an invalid valueCLOSED - CURRENTRELEASEbizhang

Actions

Also available in: Atom PDF