Last modified: 2009-05-12 23:20:18 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T17832, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 15832 - Special:ProtectedPages displays "<restriction-level->" as a restriction level
Special:ProtectedPages displays "<restriction-level->" as a restriction...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Page protection (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-10-04 19:53 UTC by zzuuzz
Modified: 2009-05-12 23:20 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description zzuuzz 2008-10-04 19:53:21 UTC
When you choose to display "any" protection level on Special:ProtectedPages on the English Wikipedia, some pages display their protection level as (<restriction-level->). These pages will not be listed if you choose to display either semi-protected or full-protected pages.

You can currently see an example listing here:

http://en.wikipedia.org/w/index.php?title=Special%3AProtectedPages&namespace=11&type=edit&level=0

which lists [[Template talk:WWIIGermanAFVs]]. And more examples here:

http://en.wikipedia.org/w/index.php?title=Special:ProtectedPages&dir=prev&offset=161987&namespace=3&type=edit&level=0&indefonly=1&sizetype=min

which lists [[User talk:ApeAndPig]], [[User talk:141.154.58.89]], and [[User talk:72.145.114.229]].

It seems to occur for pages which were protected and unprotected in 2005, and which have not been protected since. Setting an expiring protection for five minutes seems to clear it.
Comment 1 Huji 2008-10-05 18:12:15 UTC
I believe this should be fixed by running an appropriate script on the Wikimedia servers. Since it is a "Wikimedia" bug and not a MediaWiki bug, I'm moving it to the appropriate category.
Comment 2 zzuuzz 2008-10-05 23:00:39 UTC
It wouldn't take too much effort to clear them manually. I reported this bug for two reasons: it was presumably caused by a previous version of MediaWiki and is likely to have affected other installations. The script should probably form part of the maintenance or update process across the board. Secondly, the Special:ProtectedPages page should not be reporting pages which are not protected, and it's a little disconcerting that it prints what appears to be part of the underlying code as its output.
Comment 3 Aaron Schulz 2008-10-05 23:23:56 UTC
OK, for this page TS gives:

+---------+---------+----------+------------+---------+-----------+--------+
| pr_page | pr_type | pr_level | pr_cascade | pr_user | pr_expiry | pr_id  |
+---------+---------+----------+------------+---------+-----------+--------+
|  817386 | edit    |          |          0 |    NULL | infinity  | 155774 | 
|  817386 | move    |          |          0 |    NULL | infinity  | 155773 | 
+---------+---------+----------+------------+---------+-----------+--------+

+---------+-------------------+
| page_id | page_restrictions |
+---------+-------------------+
|  817386 | move=:edit=       | 
+---------+-------------------+

Probably related to old row migration scripts ran recently. It checks for edit=:move but not move=:edit=. Some code to delete the bad rows should be added to it.
Comment 4 Aaron Schulz 2008-10-05 23:29:21 UTC
Fixed in r41712. Needs someone to re-run.
Comment 5 Brion Vibber 2009-05-12 23:20:18 UTC
Looks fine as far as I can tell. Resolving FIXED and moving from site requests to code.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links