Page MenuHomePhabricator

Test for username length should be made by characters, not bytes
Closed, DeclinedPublic

Description

Author: angus

Description:
Besides of the fact that 32 chars is sometimes too low (see bug:2693), by
checking for a byte size the maximum character count for usernames not using
ASCII is reduced to one half or one third. (For example, usernames in cyrillic
would have a maximum size of 16 chars.)


Version: unspecified
Severity: minor

Details

Reference
bz2696

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 8:35 PM
bzimport set Reference to bz2696.
bzimport added a subscriber: Unknown Object (MLST).

avarab wrote:

It's necessary to test the number of bytes rather than the number of characters
since the database works with bytes ( user_name has a maximum of 255 bytes ) and
not characters, closing as WONTFIX.