https://bugzilla.wikimedia.org/show_bug.cgi?id=16629
Summary: API protection query returning wrong result
Product: MediaWiki
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: minor
Priority: Normal
Component: API
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
The API is outputting that a particular page is protected when the protection
log (and reality) indicate otherwise. This may be a Wikimedia issue and it may
not be related to the API at all, but I filed it under MediaWiki / API anyway.
The API query is:
http://en.wikipedia.org/w/api.php?action=query&prop=info&inprop=protection&titles=1755%20Lisbon%20earthquake
The protection log for the given title is:
http://en.wikipedia.org/w/index.php?title=Special:Log&page=1755_Lisbon_earthquake
So perhaps one of the tables contains bad rows? Or the API has a glitch? The
output from the API looks rather unusual:
<?xml version="1.0"?>
<api>
<query>
<pages>
<page pageid="352339" ns="0" title="1755 Lisbon earthquake"
touched="2008-12-13T10:06:03Z" lastrevid="257482439" counter="1"
length="21025">
<protection>
<pr type="edit" level="" expiry="infinity" />
<pr type="move" level="" expiry="infinity" />
<pr type="move" level="" expiry="infinity" />
<pr type="edit" level="" expiry="infinity" />
</protection>
</page>
</pages>
</query>
</api>
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l