contribs() method is not working as expected
Closed this issue · 1 comments
GoogleCodeExporter commented
What steps will reproduce the problem?
1. Call Revision[] revs = contribs("MER-C", 0);
2. or contribs("MER-C", "", null, null, 0) which is the same;
What is the expected output? What do you see instead?
Expected: revs must contain all contributions of the user (59k total for MER-C)
See: revs has only first 500 (or 5000 for bot account) revisions
What version of the product are you using? On what operating system?
r149 or r150
Please provide any additional information below.
The reason is that mediawiki (as I got it) uses different format for continue
parameter both returned and entered.
for "ucuserprefix=" it works as "uccontinue=" and it's OK
for "ucuser=" it works as "ucstart=" and Wiki.java doesn't handle this case
properly
1)
("", "MER-C", null, null, 0)
http://en.wikipedia.org/w/api.php?action=query&list=usercontribs&ucuserprefix=ME
R-C&uclimit=10&ucdir=newer&ucprop=flags|title
2)
("MER-C", "", null, null, 0)
http://en.wikipedia.org/w/api.php?action=query&list=usercontribs&ucuser=MER-C&uc
limit=10&ucdir=newer&ucprop=flags|title
Oh, this is a showstopper for a bot which I'm currently writing..
Original issue reported on code.google.com by DimaTrof...@gmail.com
on 2 Oct 2013 at 9:09
GoogleCodeExporter commented
This issue was closed by revision r152.
Original comment by stop.squark
on 3 Oct 2013 at 11:15
- Changed state: Fixed