Last modified: 2008-09-14 03:11:28 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 T17594, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 15594 - uclimit ignored when using POST
uclimit ignored when using POST
Status: RESOLVED INVALID
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: 2008-09-14 00:58 UTC by Anthony
Modified: 2008-09-14 03:11 UTC (History)
2 users (show)

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


Attachments

Description Anthony 2008-09-14 00:58:09 UTC
uclimit seems to be ignored when using POST and "list=usercontribs".  I noticed while using MediaWiki::API that queries to list=usercontribs are giving an HTTP error.  After playing around a bit I noticed that the HTTP error does not occur when querying users with a small number of contributions, but that uclimit is being ignored.  However, things seem to work fine when using GET.  Therefore, I think it's a problem with POST, but I couldn't find the exact code causing the problem.  To reproduce:

#!/usr/bin/perl

use MediaWiki::API;

my $mw=MediaWiki::API->new();
$mw->{config}->{api_url} = 'http://en.wikipedia.org/w/api.php';

my $items = $mw->list ( {
  action => 'query',
  list => 'usercontribs',
  ucuser => '202.129.83.118',
  uclimit => '1',
#  ucdir => 'newer',
} ) || die $mw->{error}->{code} . ': ' . $mw->{error}->{details};

foreach (@{$items}) {
  print "$_->{pageid}\n";
}
Comment 1 Anthony 2008-09-14 03:11:28 UTC
Nevermind, this is either a bug in MediaWiki::API or a mistake in my script, depending on how you look at it.  MediaWiki::API apparently repeatedly queries the server unless a "max" parameter is set.

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


Navigation
Links