Page MenuHomePhabricator

Lengthen the ipblocks.ipb_address field to varchar(255)
Closed, ResolvedPublic

Description

Author: tietew-mediazilla

Description:
Special:Ipblocklist shows only first 40 bytes of username who is blocked.
If the username is longer than 40 bytes, Special:Ipblocklist shows malformed
UTF-8 string. So contributions link and unblock link are broken.

For example:
User:あいうえおかきくけこさしすせそ (55bytes) is shown as
"あいうえおかきくけこさしす?" in Ipblocklist (? is %E3; malformed UTF-8 character).

When clicking contributions link, it's shown that contributions of User:あいうえ
おかきくけこさしす? instead of User:あいうえおかきくけこさしすせそ. Of cause
it's empty.

When clicking unblock link, the unblock form contains broken username, so no
users will be unblocked. Even if I enter "あいうえおかきくけこさしすせそ"
manually to unblock form, the user won't be unblocked.

I think ipblocks.ipb_address must be varchar(255) to conatin full username.


Version: unspecified
Severity: major

Details

Reference
bz5571