Last modified: 2012-04-12 13:55:53 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 T22981, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 20981 - API incorrectly reports "query-continue"
API incorrectly reports "query-continue"
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.16.x
All All
: Normal major (vote)
: ---
Assigned To: Roan Kattouw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-10-04 14:49 UTC by Nakor
Modified: 2012-04-12 13:55 UTC (History)
5 users (show)

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


Attachments

Description Nakor 2009-10-04 14:49:53 UTC
Hello,

Please try the following query:

http://en.wikipedia.org/w/api.php?action=query&list=usercontribs&ucuser=Catrope&uclimit=3&ucdir=newer

The results is:

<?xml version="1.0"?>
<api>
  <query>
    <usercontribs>
      <item user="Catrope" pageid="11650099" revid="136629050" ns="3" title="User talk:Catrope" timestamp="2007-06-07T16:45:30Z" minor="" comment="Creation; directing to BW" size="119" />
      <item user="Catrope" pageid="11650100" revid="136629120" ns="2" title="User:Catrope" timestamp="2007-06-07T16:45:49Z" minor="" comment="Creation; directing to BW" size="109" />
      <item user="Catrope" pageid="3383874" revid="136629407" ns="3" title="User talk:Ruud Koot" timestamp="2007-06-07T16:47:09Z" comment="Nested collapsible tables fix" size="70939" />
    </usercontribs>
  </query>
  <query-continue>
    <usercontribs ucstart="2007-06-11T09:23:57Z" />
  </query-continue>
</api>

Three results are returned (as asked) but the API indicates that there is a continuation, which should not happen because all 3 results that where asked for were returned.

  Thanks,

Nakor
Comment 1 Roan Kattouw 2009-10-04 14:53:43 UTC
(In reply to comment #0)
> Three results are returned (as asked) but the API indicates that there is a
> continuation, which should not happen because all 3 results that where asked
> for were returned.
> 
You're misunderstanding what query-continue means. It means that there are more results, regardless of whether you asked for them.
Comment 2 Nakor 2009-10-16 18:55:09 UTC
It used to work that way. A recent change broke the algorithm tat was in place in pywikipedia.

Are we then guaranteed that if we ask for any uclimit, all those entries will be back in the first query?
Comment 3 Roan Kattouw 2009-10-16 18:56:42 UTC
(In reply to comment #2)
> It used to work that way. A recent change broke the algorithm tat was in place
> in pywikipedia.
> 
> Are we then guaranteed that if we ask for any uclimit, all those entries will
> be back in the first query?
> 

No. You have to count the results yourself to see if you're missing anything.

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


Navigation
Links