Page MenuHomePhabricator

Restoring deleted page indexes page on letter E in its categories
Closed, ResolvedPublic

Description

Whenever we try to restore a deleted page, listing a (any) category that holds that page, we find
the page to be on letter E whatever its first letter is. The solution so far is to simulate an
edition to the restored page. Even without any change (and no addition to the page history), just
clicking on Save page will put the page back on the correct letter in its categories' index.

Example:
Article 'Wikipedia', included in category 'Help'.
I delete the article and then I restore it back.
If I go to the 'Help' category, 'Wikipedia' appears under letter 'E'.
Editing article 'Wikipedia' will move it back to letter 'W' in category 'Help'.


Version: 1.4.x
Severity: normal
URL: http://pt.wiktionary.org

Details

Reference
bz2081

Revisions and Commits

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:27 PM
bzimport set Reference to bz2081.
bzimport added a subscriber: Unknown Object (MLST).

This is hard to confirm since the pages mentioned don't appear to exist at pt.wiktionary.org so I
can't look at their database entries. Please give the actual names of these pages if possible.

Likely a problem with updates incorrectly applying the global $wgTitle. This could use 'Especial:
Undelete' instead of the correct name.

(In reply to comment #1)

This is hard to confirm since the pages mentioned don't appear to exist at pt.wiktionary.org so I
can't look at their database entries. Please give the actual names of these pages if possible.
Likely a problem with updates incorrectly applying the global $wgTitle. This could use 'Especial:
Undelete' instead of the correct name.

One of our administrators has just reproduced a case and left it incorrect on purpose. The article's name is Beleza. Can you
please check that one? Thanks.

mysql> select * from categorylinks where cl_from=5152;
+---------+-------------+-------------------+----------------+

cl_fromcl_tocl_sortkeycl_timestamp

+---------+-------------+-------------------+----------------+

5152PortuguêsEspecial:Undelete20050505204937
5152SubstantivoEspecial:Undelete20050505204937

+---------+-------------+-------------------+----------------+

Yep, that's the problem. Will poke at it in a bit...

Brion, didn't you forget to assign the bug?

Hi there. Any news on this bug?

gangleri wrote:

please see

bug 2331: undeleting pages does not add the pages to categories

last seems to be a duplicate of bug 2081 or describing a *newer* bahaviour

Shouldn't this bug be closed as a consequence of resolution of duplicate bug 2331?

bug 2331 has been closed so I guess this one is too.

Diffusion added a commit: Unknown Object (Diffusion Commit).Mar 4 2015, 8:25 AM