Last modified: 2014-03-05 17:03:04 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 T64247, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 62247 - Duplicate protection entries listed when both old and new styles present
Duplicate protection entries listed when both old and new styles present
Status: RESOLVED DUPLICATE of bug 28751
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.23.0
All All
: Low minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-03-05 06:01 UTC by Robert Morley
Modified: 2014-03-05 17:03 UTC (History)
5 users (show)

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


Attachments

Description Robert Morley 2014-03-05 06:01:31 UTC
The API lists duplicate protection entries when both page.page_restrictions and page_protections.* entries are present. This can currently be seen on the Wikipedia "Main page" redirect:

http://en.wikipedia.org/w/api.php?action=query&titles=Main+page&prop=info&inprop=protection

While the correct action is probably to run whatever maintenance script is necessary to resolve the anomaly between tables, the API should probably also account for the possibility that this script has never been run.
Comment 1 Robert Morley 2014-03-05 06:03:24 UTC
Bah, that second table should read page_restrictions.*. Sorry!
Comment 2 Brad Jorsch 2014-03-05 17:03:04 UTC

*** This bug has been marked as a duplicate of bug 28751 ***

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


Navigation
Links