Last modified: 2007-06-25 17:05:12 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 10338 - Length of nickname
Length of nickname
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2007-06-23 14:38 UTC by Alexander Sigachov
Modified: 2007-06-25 17:05 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description Alexander Sigachov 2007-06-23 14:38:20 UTC
I've tried to use (for test) nickname of 150 cyrillic characters and recieved error message "Nickname too long; must be under 250 characters."

Apparently, this message is about size of Unicode string, not about characters.
Comment 1 Rob Church 2007-06-23 19:22:02 UTC
We should probably check that a multi-byte compatible string length function is being used.
Comment 2 Aryeh Gregor (not reading bugmail, please e-mail directly) 2007-06-24 02:14:19 UTC
How about you not use an insanely long username?  :)  You should be able to get up to about 85 characters even in Cyrillic or Chinese or other three-byte UTF-8 scripts, and that should already be more than would be conceivably typeable without causing frequent sentiments of extreme aggression in your fellow wiki users.  In any case it's the maximum possible length for the database field in MySQL 4 (or close enough), so we'd have to switch to MEDIUMTEXT or something if we wanted to allow this, which seems fairly ridiculous.
Comment 3 Alexander Sigachov 2007-06-24 08:40:44 UTC
should we change message 
'badsiglength' => 'Nickname too long; must be under $1 characters.'
'badsiglength' => 'Nickname too long; must be under $1 bytes of UTF-8.',
Comment 4 Brion Vibber 2007-06-25 14:55:14 UTC
*rolleyes* fine people :)

We can make it characters. That'll make the input box limitation work properly as well.
Comment 5 Brion Vibber 2007-06-25 15:54:12 UTC
Went ahead and changed it in r23389. We've got a fallback implementation for mb_strlen() so it's available now with or without mbstring.

Since it's not being limited by a 255-byte database field, switching this one to use characters is easy.
Comment 6 Aryeh Gregor (not reading bugmail, please e-mail directly) 2007-06-25 17:05:12 UTC
Whoops, I'm an idiot.  I somehow thought that this was talking about actual usernames.  The terminology in that message confuses the hell out of me without context, although with context I guess it's clear enough.  Sorry.  :)

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