Page MenuHomePhabricator

Block log for an IP should include range blocks affecting that IP
Open, Needs TriagePublic

Description

Example:

  • https://en.wikipedia.org/w/index.php?title=Special:Log/block&page=User%3A86.179.83.42

Expected output:

  • Single-IP block performed by User:Alexf on 28 January 2018
  • Range block of 86.179.83.0/25 performed by User:Malcolmxl5 on 27 February 2018
  • Any other range blocks that included 86.179.83.42

Actual output:

  • Single-IP block performed by User:Alexf on 28 January 2018

Environment: live enwiki, which is

  • MediaWiki 1.31.0-wmf.23 (rMW82d9536b5880)
  • HHVM 3.18.6-dev (srv)
  • MariaDB 10.0.33-MariaDB

This seems like common sense to me, so much so that I'm having trouble articulating why I want it. When researching possible sources of harm to one's site, more information is always helpful.

IIRC when multiple blocks apply to the same user, they all expire on the earliest expiry date. If that's true for range blocks as well, this issue could make the block's true end date appear later than it is. (When rangeblocking for high-volume spam, for example, some power users watch that range carefully as it becomes able to edit again.)

T139656 is the same concept on Special:Contributions, if not exactly the same code.

Hope that makes some sense, thanks.