Last modified: 2010-07-10 10:48:26 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 T26185, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 24185 - Implement support for special pages in action=query
Implement support for special pages in action=query
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.17.x
All All
: Normal enhancement (vote)
: ---
Assigned To: Sam Reed (reedy)
:
Depends on:
Blocks: 24181
  Show dependency treegraph
 
Reported: 2010-06-30 10:38 UTC by Roan Kattouw
Modified: 2010-07-10 10:48 UTC (History)
5 users (show)

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


Attachments

Description Roan Kattouw 2010-06-30 10:38:38 UTC
http://en.wikipedia.org/w/api.php?action=query&titles=Main_Page|Special:AllPages

  <warnings>
    <query xml:space="preserve">No support for special pages has been implemented</query>
  </warnings>

This causes bug 24181 among other things. While that can be fixed in the client code, it shouldn't be very hard to support special pages at least for existence checks. We would need to be careful to ensure that special pages aren't accidentally fed to modules that can't handle them or where they don't make sense.
Comment 1 Sam Reed (reedy) 2010-06-30 10:43:36 UTC
Partially bug 14869 ? ;D

/me ducks

:P
Comment 2 Roan Kattouw 2010-06-30 10:47:19 UTC
(In reply to comment #1)
> Partially bug 14869 ? ;D
> 
> /me ducks
> 
> :P
Heh.

No, not really. This is just about creating a Title object for Special: pages and actually doing something with it (normalization, existence check) rather than detecting that $title->getNamespace() < 0 (catches NS_MEDIA as well as NS_SPECIAL) and freaking out.
Comment 3 Sam Reed (reedy) 2010-06-30 10:49:58 UTC
bug 21991 is for normalising things like title validation too...
Comment 4 Roan Kattouw 2010-06-30 11:27:25 UTC
(In reply to comment #3)
> bug 21991 is for normalising things like title validation too...
Yeah, although that deals with user titles mostly. 'Normal' titles aren't validated in the parameter handling code ATM, each module validates them themselves and has different requirements (title must exist for move but not for edit, etc.). We could centralize this in the spirit of bug 21991, but that doesn't really overlap much with this bug, which is about getting some non-zero support for special pages in ApiPageSet.
Comment 5 Bryan Tong Minh 2010-07-10 10:18:50 UTC
Do you also want to include NS_MEDIA pages or only NS_SPECIAL?
Comment 6 Bryan Tong Minh 2010-07-10 10:48:26 UTC
r69233.

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


Navigation
Links