Last modified: 2008-08-18 20:50:11 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 T17228, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 15228 - Odd behavior of "redirects" parameter
Odd behavior of "redirects" parameter
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.14.x
All All
: Normal normal (vote)
: ---
Assigned To: Roan Kattouw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-08-18 16:49 UTC by Brad Jorsch
Modified: 2008-08-18 20:50 UTC (History)
2 users (show)

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


Attachments

Description Brad Jorsch 2008-08-18 16:49:34 UTC
This is observed in 1.14alpha (r39353) running at en.wikipedia.org. I have also observed it in past versions.

If I want to get information on the pages linked from another page with linked redirects followed, I can use a simple query using 'links' as a generator for prop=info. But if I try the same thing for an old revision of the same page, the API gives an error "revids may not be used with redirect resolution".

Works: http://en.wikipedia.org/w/api.php?action=query&generator=links&titles=Wikipedia:Village_pump_(technical)&prop=info&redirects
Fails: http://en.wikipedia.org/w/api.php?action=query&generator=links&revids=232682396&prop=info&redirects

For consistency, either the second query should behave the same as the first by following the redirects returned by the generator, or 'redirects' should only apply to the "titles" parameter and not to pages returned by a generator (a new parameter could be created to have generator-returned redirects followed in this case).
Comment 1 Roan Kattouw 2008-08-18 20:50:11 UTC
Fixed in r39614. Redirects in the revids= parameter still aren't resolved, but combining those parameters now results in a warning instead of an error, and still resolves redirects from the generator.

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


Navigation
Links