Last modified: 2012-04-16 09:16:03 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 T27734, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 25734 - API: possible issue with revids validation
API: possible issue with revids validation
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Roan Kattouw
http://en.wikipedia.org/w/api.php?act...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-11-01 04:35 UTC by Gurch
Modified: 2012-04-16 09:16 UTC (History)
4 users (show)

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


Attachments

Description Gurch 2010-11-01 04:35:35 UTC
http://en.wikipedia.org/w/api.php?action=query&revids=123|456

-- works (returns details of revisions)


http://en.wikipedia.org/w/api.php?action=query&revids=-1

-- works (returns "badrevids")


http://en.wikipedia.org/w/api.php?action=query&revids=-1|123

-- the request times out. Any other sequence of IDs that mixes valid and invalid IDs produces the same behavior, e.g.

http://en.wikipedia.org/w/api.php?action=query&revids=10|20|30|40|-50|60


Cannot reproduce locally with trunk, so may already be fixed.
Comment 1 Sam Reed (reedy) 2010-11-02 23:23:18 UTC
It is fine on 1.16 and SVN locally for me
Comment 2 Gurch 2010-11-03 04:31:16 UTC
(In reply to comment #1)
> It is fine on 1.16 and SVN locally for me

Probably fixed, then. I'll re-open if it's still a problem when Wikimedia is updated to (an equivalent to) 1.16.

Incidentally, there seems to be no way to report bugs against WMF deployment versions rather than release versions or trunk. Am I supposed to just select "Wikimedia" as the product?
Comment 3 Sam Reed (reedy) 2010-11-03 10:54:55 UTC
Good idea.

There is now a wikimedia-deployment version of MediaWiki
Comment 4 Gurch 2011-06-05 00:53:37 UTC
Reopening as 8 months on this still happens (the links in comment #1 that timed out still do).

This is the problem with having what amounts to two separate projects that were forked from 1.15alpha. no way of guaranteeing fixes from one will ever show up in the other.

Someone needs to go back and find where it was fixed in trunk and fix it in wmf deployment.
Comment 5 Sam Reed (reedy) 2011-06-05 13:52:39 UTC
Still works fine in trunk for me

http://192.168.0.190/w/api.php?action=query&revids=10|20|30|40|-50|60

<?xml version="1.0"?>
<api xmlns="http://www.mediawiki.org/xml/api/">
  <query>
    <badrevids>
      <rev revid="20" />
      <rev revid="-50" />
    </badrevids>
    <pages>
      <page pageid="1" ns="0" title="Main Page" />
      <page pageid="9" ns="14" title="Category:En" />
      <page pageid="43" ns="2" title="User:Reedy/LAOLWOALALA" />
    </pages>
  </query>
</api>
Comment 6 Sam Reed (reedy) 2011-06-05 14:04:37 UTC
Fine on test.wikipedia.org

http://test.wikipedia.org/w/api.php?action=query&revids=10|20|30|40|-50|60

And all standalone on enwiki, they're fine too
Comment 8 Sam Reed (reedy) 2011-06-05 17:49:32 UTC
r89512


Seems the query is doing something retarded, and dies at 4 minutes, which I guess is domas' long query runner

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


Navigation
Links