Page MenuHomePhabricator

Long usernames break block link in new user log entries
Closed, ResolvedPublic

Description

Author: nunotavares

Description:
As extracted from "Recent changes" (I'm translating the messages to english, so
excuse any lack of accuracy):
<pre>
(New users log); 00:14 . . Anderson Luiz Prestes Gomes (talk | block) (User
created "Anderson Luiz Prestes Gomes" (talk | Contributions |
[[Special:Blockip/Anderson Luiz Prestes G)
</pre>

Notice the end of the line: the [[ tag is not closed, so the link appears
broken. Anyway, just noticed we have already a BLOCK link, so what's the point
in repeating it?


Version: unspecified
Severity: normal

Details

Reference
bz4756

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:03 PM
bzimport set Reference to bz4756.
bzimport added a subscriber: Unknown Object (MLST).

nunotavares wrote:

Eheh, just found you, guys. I think I understood. Anyway, two of those links are
repeated, so I'll take them off. I think that it's very unlikely to overflow the
buffer from now on. It might not be a bug, if the string is intended to be fixed
size. You shall know better than I do. Please close this bug, if it is. Thanks!

wiki.bugzilla wrote:

Yes, quick workaround:
"[[User:$1|$1]]"
is redundant for this message, either way.
Remove it.

This also appears on sr: wiki, because we use Cyrillic script which takes more
bytes. Sometimes, even "contributions" link is broken (let alone "block" link).

  • Bug 5294 has been marked as a duplicate of this bug. ***

robchur wrote:

*** Bug 6259 has been marked as a duplicate of this bug. ***

Same problem on de:wiki, see
http://de.wikipedia.org/w/index.php?title=Spezial%3ALog&type=newusers&user=&page=
a lot of long usernames (all of the funny §$%&/&%$%& kind, we are laughing...).
For a faster blocking it would be nice to have the block-link.

After implementation the standard user tools with r15315 (Bug 6185) this bug is
no longer a problem. But please remove the second toolset with the broken
blocklink, see Bug 6555 (now a dupe of this).

  • Bug 6555 has been marked as a duplicate of this bug. ***

Update: currently this happens only if an logged in user creates an account for
another user. Than the user tool links are added to the comment of the new user.
That's ok but the if the new username is too long, the links of the user tools
are broken.

  • Bug 4975 has been marked as a duplicate of this bug. ***

Fixed with r20709 (for MediaWiki >= 1.10alpha, backwards compatible).