In-Portal Issue Tracker - In-Portal CMS
Viewing Issue Advanced Details
1230 [In-Portal CMS] Data Management bug report always 2012-03-22 13:28 2012-07-25 05:31
Dmitry  
alex  
normal  
closed 5.2.0-B2  
fixed  
 
none 5.2.0-B3  
https://groups.google.com/d/topic/in-portal-bugs/VYtfsnj-2rc/discussion
Fixed issue with username validation on user registration and edit
1
0001230: Issue with Username Validation on User Registration & Edit
When administrator have enabled registration by e-mail on website, then Username field is no longer required.

This sounds good, but since we have username length validation always enabled, then I still get "Field value length is out of range, possible value length from 3 to 255" error for Username field.

SOLUTION:

We need to remove Length validation from Username field when it's EMPTY, but have it checked if it's 1+ symbols long.

This should be checked to be working on Front and Admin.
png Username-NonRequired.png (54,156) 2012-03-22 13:28
http://tracker.in-portal.org/file_download.php?file_id=1563&type=bug
png

patch skip_username_validation_when_nonrequired.patch (1,385) 2012-03-26 10:36
http://tracker.in-portal.org/file_download.php?file_id=1569&type=bug
Issue History
2012-07-25 05:31 alex Note Added: 0004951
2012-07-25 05:31 alex Status resolved => closed
2012-03-26 10:37 alex Changeset attached 5.2.x r15236
2012-03-26 10:37 alex Note Added: 0004517
2012-03-26 10:37 alex Status reviewed and tested => resolved
2012-03-26 10:37 alex Fixed in Version => 5.2.0-B3
2012-03-26 10:37 alex Resolution open => fixed
2012-03-26 10:37 alex Assigned To !COMMUNITY => alex
2012-03-26 10:36 alex Note Added: 0004516
2012-03-26 10:36 alex Status needs testing => reviewed and tested
2012-03-26 10:36 alex Assigned To => !COMMUNITY
2012-03-26 10:36 alex Developer => alex
2012-03-26 10:36 alex Status active => needs testing
2012-03-26 10:36 alex File Added: skip_username_validation_when_nonrequired.patch
2012-03-26 08:08 alex Estimate Points 0 => 1
2012-03-22 13:28 Dmitry New Issue
2012-03-22 13:28 Dmitry File Added: Username-NonRequired.png
2012-03-22 13:28 Dmitry Reference => https://groups.google.com/d/topic/in-portal-bugs/VYtfsnj-2rc/discussion
2012-03-22 13:28 Dmitry Change Log Message => Fixed issue with username validation on user registration and edit
2012-03-22 13:28 Dmitry Estimate Points => 0

Notes
(0004516)
alex   
2012-03-26 10:36   
Will test all together later.
(0004517)
alex   
2012-03-26 10:37   
Fix committed to 5.2.x branch. Commit Message:

Fixes 0001230: Issue with Username Validation on User Registration & Edit
(0004951)
alex   
2012-07-25 05:31   
Since 5.2.0 version was released.