Page MenuHomePhabricator

api prop=info doesn't show create protection
Closed, ResolvedPublic

Description

Author: cbm.wikipedia

Description:
The prop=info query with inprop=protection doesn't indicate when a page is protected from creation. This query

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

gives

<?xml version="1.0" encoding="utf-8"?>
<api>

<query>
  <normalized>
    <n from="Real_social_dynamics" to="Real social dynamics" />
  </normalized>
  <pages>
    <page ns="0" title="Real social dynamics" missing="">
      <protection />
    </page>
  </pages>
</query>

</api>

but the page is currently protected from creation.


Version: 1.13.x
Severity: enhancement

Details

Reference
bz13768

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:08 PM
bzimport set Reference to bz13768.

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

does give the right results. Create protection affects all case variants because the pt_title field is case-insensitive. Fixed in r33473.

Reverted r33473 and added a proper fix for the field's encoding in r33508. pt_title is now properly case-sensitive, matching the behavior of all other title fields.

If the field were meant to be case insensitive, it wouldn't work correctly as previously written!