Page MenuHomePhabricator

watchlist sometimes shows 2 entries for 1 page when multiple revdeletes are involved
Open, MediumPublicBUG REPORT

Description

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

image.png (647×1 px, 94 KB)

What happens?:

  • two entries for the same page

image.png (252×2 px, 109 KB)

image.png (912×1 px, 262 KB)

What should have happened instead?:

  • one entry for the same page

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

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

Details

Related Changes in Gerrit:

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

I noticed an oddity in EnchangedChangesList in recentChangesBlockGroup():

foreach ( $block as $rcObj ) {
			// If all log actions to this page were hidden, then don't
			// give the name of the affected page for this block!
			if ( !static::isDeleted( $rcObj, LogPage::DELETED_ACTION ) ) {
				$namehidden = false;
			}

I don't see if checking that rc_source is actually a log entry. Anyway, it doesn't seem related though.

I can reproduce this on enwiki, but not locally. From the code, the grouping only depends on $rc->getTitle() and rc_timestamp. It's as if makeCacheGroupingKey() returned the wrong string. It's only used for grouping the RC entries and not for the actual title displayed in the links. I can't see how that could happen though.

aaron triaged this task as Medium priority.Oct 1 2025, 3:55 AM
aaron moved this task from Incoming (Needs Triage) to Bugs & Chores on the MW-Interfaces-Team board.
jsn.sherman subscribed.

@Novem_Linguae thanks for filing this; we recently addressed a CVE and this is emergent behavior related to that change. We'll get on it!

Thanks. Feel free to add me to the CVE ticket.

Change #1198596 had a related patch set uploaded (by Dillon; author: Dillon):

[mediawiki/core@master] Fix visual regression from CVE-2025-61646

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

Test wiki created on Patch demo by KGraessle-WMF using patch(es) linked to this task:
https://a187cc27c1.catalyst.wmcloud.org/w/