Page MenuHomePhabricator

Special:AutoblockList shows regular blocks after block edited/reblocking
Closed, ResolvedPublicBUG REPORT

Description

What is the problem?

After editing a block (i.e. reblocking), it appears in Special:AutoblockList.

I think this is because when you reblock ipb_parent_block_id gets changed from NULL to 0 and SpecialAutoblockList.php queries for ipb_parent_block_id IS NOT NULL.

Special:AutoblockList should only show autoblocks.

Steps to reproduce problem
  1. Block $user via Special:Block
  2. Reblock $user via Special:Block/$user (it doesn't matter which parameters you change)
  3. Go to Special:AutoblockList

Expected behavior: You should only see autoblocks (i.e. entries of the form Autoblock #nnn)
Observed behavior: You see block against $user

Environment

Wiki(s): https://en.wikipedia.beta.wmflabs.org MediaWiki 1.37.0-alpha (3fad861) 02:08, 7 May 2021

Event Timeline

Umherirrender subscribed.

The root cause for this is T282890, but the query can be fixed to avoid that as well

Change 833079 had a related patch set uploaded (by Umherirrender; author: Umherirrender):

[mediawiki/core@master] Fix Special:AutoblockList showing normal blocks after reblocks

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

Change 833079 merged by jenkins-bot:

[mediawiki/core@master] Fix Special:AutoblockList showing normal blocks after reblocks

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