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

bzimport added a project: MediaWiki-API.Via ConduitNov 21 2014, 10:08 PM
bzimport set Reference to bz13768.
bzimport created this task.Via LegacyApr 16 2008, 8:16 PM
Catrope added a comment.Via ConduitApr 17 2008, 12:59 PM

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.

brion added a comment.Via ConduitApr 17 2008, 7:13 PM

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!

Add Comment