Page MenuHomePhabricator

Duplicate protection entries listed when both old and new styles present
Closed, ResolvedPublic

Description

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.


Version: 1.23.0
Severity: minor

Details

Reference
bz62247

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 2:59 AM
bzimport set Reference to bz62247.
bzimport added a subscriber: Unknown Object (MLST).

Bah, that second table should read page_restrictions.*. Sorry!

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