Project

Profile

Help

Issue #2976

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

Added by daviddavis about 2 years ago. Updated 6 months ago.

Status:
CLOSED - DUPLICATE
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
Start date:
Due date:
Severity:
2. Medium
Version:
Platform Release:
Blocks Release:
OS:
Backwards Incompatible:
No
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Easy Fix
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:

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 characters CLOSED - DUPLICATE Actions
Related to Pulp - Story #2984: As an API user, I get user friendly feedback when I use an invalid value MODIFIED Actions

History

#1 Updated by daviddavis about 2 years ago

  • Tags Easy Fix, Pulp 3 added

#2 Updated by daviddavis about 2 years ago

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

#3 Updated by daviddavis about 2 years ago

  • Status changed from NEW to CLOSED - DUPLICATE

#4 Updated by daviddavis about 2 years ago

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

#5 Updated by daviddavis 6 months ago

  • Sprint/Milestone set to 3.0

#6 Updated by bmbouter 6 months ago

  • Tags deleted (Pulp 3)

Please register to edit this issue

Also available in: Atom PDF