Page MenuHomePhabricator

Block Information Not Displayed on Special:CentralAuth for Blocked Users
Closed, InvalidPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Block a user on Special:Block
  • Navigate to Special:CentralAuth and search for the blocked user.

What happens?:
The block information is missing from Special:CentralAuth, making it unclear if a user is blocked.

What should have happened instead?:
Special:CentralAuth should display block details for the user, consistent with how it appears in production.

Other information (browser name/version, screenshots, etc.):

2025-03-05_09-10-46.png (809×1 px, 143 KB)
2025-03-05_09-11-10.png (1×1 px, 216 KB)

Event Timeline

@GMikesell-WMF It looks like in the first screenshot, you blocked Betatester but in the second you're looking at Betatesterone

https://test.wikipedia.beta.wmflabs.org/wiki/Special:CentralAuth/Betatester shows correctly that Betatester is blocked on testwiki.

False alarm, perhaps?

Screenshot from 2025-03-05 14-44-58.png (153×1 px, 22 KB)


Even so, I don't know that we have tested CentralAuth with Multiblocks enabled ($wgEnableMultiBlocks). There may still be some work to do.

Specifically, I suspect CentralAuth just grabs the first block and shows the reason and block parameters for that block. That's fine with multiblocks off, but when they are on, which block do we show? All of them? I was thinking we could similar to what we did for T384916: Update block log snippets for multiblocks and including a message indicating the total number of blocks (that includes a link to Special:BlockList for that user), and show the reason and block parameters for the most recent one.

tstarling subscribed.

I did the following tests:

  • Checked Special:CentralAuth for a multi-blocked user
  • Checked Special:CentralAuth for a non-blocked user
  • Blocked that user
  • Reloaded Special:CentralAuth, the block appears
  • Checked the logs, confirming that the correct DB queries are done
  • Confirmed by code review that there is no cache on Special:CentralAuth which needs to be cleared
  • Repeated the test for a foreign wiki block, i.e. used a different wiki for Special:CentralAuth and Special:Block

I couldn't reproduce the bug as described. If there is a bug here, please reopen with a more specific reproduction procedure.