Page MenuHomePhabricator

Special:NewPages does not follow redirects
Open, LowPublic

Description

Special:NewPages checks the existence of a page by id, but refers to it by name; when the page is renamed, the two can become out of synch.

Steps to reproduce:

  1. create page Foo
  2. rename it to Bar

Expected result: there are two new records on Special:NewPages, Foo and Bar. When you delete Foo, the record for Foo disappears (and vice versa).
Actual result: there is one new record, for Foo. Deleting Foo does not affect it, but it disappears when you delete Bar.


  1. create page Foo
  2. rename it to Bar, suppressing redirect creation

Expected result: there is a new record on Special:NewPages, Bar. It disappears when Bar is deleted.
Actual result: the record is called Foo. (It does disappear when Bar is deleted.)

Bugs that are special cases of this: bug 16705 (T18705), bug 17463 (T19463), bug 17536 (T19536).

Two real-world problems caused by the bug:

You can create pages under the radar of the new page patrol by immediately renaming them and overwriting the redirect with another article.

On wikis with FlagRev enabled, if an unreviewed page is moved into a non-reviewed namespace (to a user subpage, for example), Special:NewPages will list it when queried for new pages in main namespace, and put "not-patrolled" class on (which will probably make it stand out and be an annoyance for patrollers).

Details

Reference
bz23684

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 10:59 PM
bzimport set Reference to bz23684.
bzimport added a subscriber: Unknown Object (MLST).

(In reply to comment #0)

On wikis with FlagRev enabled, if an unreviewed page is moved into a
non-reviewed namespace (to a user subpage, for example), Special:NewPages will
list it when queried for new pages in main namespace, and put "not-patrolled"
class on (which will probably make it stand out and be an annoyance for
patrollers).

This should not be an issue anymore.

I followed the same steps mentioned in the description of this task, and found some different appearance:
Create a article named Foo, renamed to Bar (with redirect suppressed), then article Foo (and Bar) disappeared from Special:NewPages.
If the redirect is not suppressed but manually deleted by someone else, it disappeared from Special:NewPages too.