Page MenuHomePhabricator

'(username removed)' is added as a username with a link in the Special:CheckUser summary table
Closed, ResolvedPublic2 Estimated Story PointsBUG REPORT

Description

When a username is hidden in the results list in Special:CheckUser, the CheckUser summary table treats the text that is shown instead of the username (i.e. username removed) as a valid username and therefore provides a wikitext link for it.

Example:

image.png (184×1 px, 54 KB)

Steps to replicate the issue
  1. Create a new user account
  2. Login to a user account with the suppressor and sysop group
  3. Block the user with hideuser enabled
  4. Login to an account which does not have the suppressor group
  5. Run Special:CheckUser where the target of the check the IP used by the user you blocked in step 3

What happens?:
The CheckUser summary table (the one shown in underneath See results in a table) has a row for username removed where the text is clickable.

What should have happened instead?:
The row should be there, but it should not have a link to avoid confusion.

Event Timeline

Dreamy_Jazz renamed this task from '(username removed') is added as a username with a link in the Special:CheckUser summary table to '(username removed)' is added as a username with a link in the Special:CheckUser summary table.Apr 1 2024, 4:38 PM
Dreamy_Jazz updated the task description. (Show Details)

Change #1019260 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/CheckUser@master] Don't link username in summary table if it isn't linked in results

https://gerrit.wikimedia.org/r/1019260

Change #1019260 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] Don't link username in summary table if it isn't linked in results

https://gerrit.wikimedia.org/r/1019260