Last modified: 2011-08-22 10:17: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 T32496, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 30496 - namespace filter not working with redirects
namespace filter not working with redirects
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-08-21 21:24 UTC by Mihael Simonič
Modified: 2011-08-22 10:17 UTC (History)
4 users (show)

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


Attachments

Description Mihael Simonič 2011-08-21 21:24:40 UTC
Calling http://en.wikipedia.org/w/api.php?action=query&generator=links&pageids=27338&gpllimit=max&gplnamespace=0&redirects
bring my attention on the following item, that appears in results: <page pageid="1072401" ns="14" title="Category:Endurance sports" />

The problem is, that page is found by redirect at 
http://en.wikipedia.org/w/index.php?title=Endurance_sports&redirect=no
which is R to other namespace. Perhaps to avoid such problems, results should be filtered after all redirects are resolved.
Comment 1 Roan Kattouw 2011-08-22 10:17:53 UTC
That's fundamentally not how generators work. A generator is like a UNIX pipe, feeding the results of one query into another. Moreover, due to the way redirect resolution works, namespace filtering of redirect targets cannot be implemented efficiently.

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


Navigation
Links