https://bugzilla.wikimedia.org/show_bug.cgi?id=28068

           Summary: continue not working as expected for category member
                    query
           Product: MediaWiki
           Version: wikimedia-deployment
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: Normal
         Component: API
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]


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.

-- 
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

Reply via email to