Bug 981082 - Some Username validation error messages not always accurate
Some Username validation error messages not always accurate
Product: Zanata
Classification: Community
Component: Usability (Show other bugs)
Unspecified All
unspecified Severity low
: ---
: ---
Assigned To: Damian Jansen
Damian Jansen
Depends On:
  Show dependency treegraph
Reported: 2013-07-03 21:30 EDT by Damian Jansen
Modified: 2014-07-28 00:18 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2014-07-28 00:18:06 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Damian Jansen 2013-07-03 21:30:38 EDT
Description of problem:
The error messages for username field validation do not accurately reflect the given errors

Version-Release number of selected component (if applicable):

How reproducible:
Easily, always

Steps to Reproduce:
1. Go to zanata/account/register
2. Enter johndoeusernamevalidation into the username field
3. Tab to / click on another field

Actual results:
lowercase letters and digits (regex "^[a-z\d_]{3,20}$")

Expected results:
size must be between 3 and 20

Additional info:
Add two 'r' characters to the end, and the right error is given. I randomly tried other characters, and got varying results in what was needed to get the size error.
Couldn't find any instance of a username <= 20 characters that caused the above.
Comment 1 Damian Jansen 2014-07-28 00:18:06 EDT
Tested 3.5.0-SNAPSHOT (git-server-3.4.2-201-ge0afdde)
It still shows the validation error rather than the size error in some cases - but due to the actual message change this is no longer "incorrect".

Note You need to log in before you can comment on or make changes to this bug.