Last modified: 2012-04-16 09:15:54 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 T30068, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 28068 - continue not working as expected for category member query
continue not working as expected for category member query
Status: RESOLVED DUPLICATE of bug 27965
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Normal major (vote)
: ---
Assigned To: Roan Kattouw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-03-15 22:03 UTC by Jeremy Tryba
Modified: 2012-04-16 09:15 UTC (History)
4 users (show)

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


Attachments

Description Jeremy Tryba 2011-03-15 22:03:41 UTC
I recently had regression tests start failing on a wikipedia API call intended to return all of the member articles of a named category. The specific test is pointed at the Progressive_Conservative_Party_of_Canada_MPs category.

The exact query issued to the wikimedia servers is:

http://en.wikipedia.org/w/api.php?action=query&list=categorymembers&cmlimit=100&cmprop=title&format=xml&cmtitle=Category:Progressive_Conservative_Party_of_Canada_MPs

notice that the first category member returned is:
<cm ns="0" title="Agar Rodney Adamson"/>

The query-continue element is as follows:

<query-continue>
  <categorymembers cmcontinue="10048701"/>
</query-continue>

Issuing the next query:

http://en.wikipedia.org/w/api.php?action=query&list=categorymembers&cmlimit=100&cmprop=title&format=xml&cmtitle=Category:Progressive_Conservative_Party_of_Canada_MPs&cmcontinue=10048701

Notice that the first member returned is:
<cm ns="0" title="Agar Rodney Adamson"/>

A number of members are repeated as continue ids are followed. Additionally, a number of members that should appear are never returned. For example, the article http://en.wikipedia.org/wiki/Ross_Reid is a member of the Progressive_Conservative_Party_of_Canada_MPs category but is never returned by the API call.
Comment 1 Sam Reed (reedy) 2011-03-15 22:05:16 UTC

*** This bug has been marked as a duplicate of bug 27965 ***
Comment 2 Jeremy Tryba 2011-03-15 22:07:53 UTC
Thanks. I failed to find that in my searches. I'm glad to see it's already being handled!

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


Navigation
Links