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 almost 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
Actions #1

Updated by daviddavis over 6 years ago

  • Tags Easy Fix, Pulp 3 added
Actions #2

Updated by daviddavis over 6 years ago

  • Related to Issue #2975: Username field doesn't validate characters added
Actions #3

Updated by daviddavis over 6 years ago

  • Status changed from NEW to CLOSED - DUPLICATE
Actions #4

Updated by daviddavis over 6 years ago

  • Related to Story #2984: As an API user, I get user friendly feedback when I use an invalid value added
Actions #5

Updated by daviddavis about 5 years ago

  • Sprint/Milestone set to 3.0.0
Actions #6

Updated by bmbouter almost 5 years ago

  • Tags deleted (Pulp 3)

Also available in: Atom PDF