Rollback does not restore linking tables (categorylinks, pagelinks)


Author: jaga_x_1

If a vandal blanks a page and that edit is rolled back, the page is restored to Wikipedia but pagelinks is not restored. As far as pagelinks is concerned, that page has no outgoing links. The problem goes away with a null edit.

I've seen this happen with page blanking and when vandals replace content with "hi" etc. Also, I've seen it when ClueBot does the rollback, and when a Huggle user does the rollback, so it isn't a bot-only problem or something like that.

This could happen with every rollback. It has come to my attention because I've created a toolserver page that builds a list of deadend pages, and I kept getting articles that had no business whatsoever in the list - Yoko Ono, for instance.

How to reproduce:

  1. Pick one of these articles I've found to exhibit the bug (as of time of writing): "2006 Winter Olympics", "Infectious disease", "List of poems"
  1. Verify that the last edit in its history is a user rolling back blanking vandalism
  1. Pick any link on the page (on "Infectious disease", I chose "Clostridium difficile") and click it
  1. Click "What links here" for the random link
  1. Search the "What links here" list for your article, it isn't there

This is causing a problem for me because if it weren't for this bug, my deadend articles list would be suitable for a bot to use for auto-tagging. But because of this, everything must be reviewed manually.

Version: 1.14.x
Severity: normal

bzimport added a project: MediaWiki-Parser.Via ConduitNov 21 2014, 10:27 PM
bzimport added a subscriber: wikibugs-l.
bzimport set Reference to bz17154.
bzimport created this task.Via LegacyJan 25 2009, 8:43 PM
Catrope added a comment.Via ConduitJan 26 2009, 12:09 PM

(In reply to comment #0)

  1. Pick any link on the page (on "Infectious disease", I chose "Clostridium difficile") and click it
  2. Click "What links here" for the random link
  3. Search the "What links here" list for your article, it isn't there

A faster way is to use|revisions&titles=2006_Winter_Olympics|Infectious_disease|List_of_poems which lists all outgoing links (according to the pagelinks table that is) on the given pages and their latest revision. And you're right: those lists are empty and the last revision is a revert (at the time or writing).

demon added a comment.Via ConduitMar 31 2009, 7:45 AM
  • Bug 18267 has been marked as a duplicate of this bug. ***
demon added a comment.Via ConduitAug 17 2009, 10:06 PM
  • Bug 17686 has been marked as a duplicate of this bug. ***
Mr.Z-man added a comment.Via ConduitOct 3 2009, 12:56 AM

I can't seem to reproduce this. If this is still an issue, it must be some sort of transitory fluke.

bzimport added a comment.Via ConduitMay 31 2010, 1:46 AM

craigbear wrote:

Here's an example of this bug in action:

University of Warsaw was [ vandalized on April 29], and [ reverted by ClueBot] within *seconds*. However, the article remained listed on the [ uncategorized articles] list for a full month, even though categories *were* present on the article, until I caught it on May 30 and did a no-edit save to the article to force it off the list.

bzimport added a comment.Via ConduitJun 3 2010, 5:45 PM

craigbear wrote:

Another one: Bulgars was blanked and reverted on May 19; the page is still listed as an "uncategorized" article, even though categories are present, as I write this on June 6.

This needs to be fixed, because we can't deal with uncategorized articles in a quick and timely manner (e.g. setting a bot loose to tag them) if it isn't.

demon added a comment.Via ConduitAug 6 2010, 12:42 PM
  • Bug 23336 has been marked as a duplicate of this bug. ***

Add Comment

Column Prototype
This is a very early prototype of a persistent column. It is not expected to work yet, and leaving it open will activate other new features which will break things. Press "\" (backslash) on your keyboard to close it now.