Last modified: 2008-07-27 14:05:07 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 T13673, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 11673 - Unknown_action error should return an error object
Unknown_action error should return an error object
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Yuri Astrakhan
:
: 14942 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-10-15 19:45 UTC by Russell Blau
Modified: 2008-07-27 14:05 UTC (History)
4 users (show)

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


Attachments

Description Russell Blau 2007-10-15 19:45:16 UTC
http://en.wikipedia.org/w/api.php?action=none results in a text error message:

unknown_action: Unrecognised value for parameter 'action'

To be consistent with the treatment of other errors, it really should return a formatted response (in XML, or JSON, or whatever format has been selected) with an "error" attribute.
Comment 1 Daniel Cannon (AmiDaniel) 2007-10-26 05:12:49 UTC
Yes, it definitely should. I'm having a really hard time trying to diagnose this bug -- the code is clearly trying to produce a formatted message, but not succeeding for reasons unknown to me. Hopefully Yuri can figure it out better than I can :) Changing severity to "normal"--when a user requests an xml document and doesn't get one back, even if he specified an invalid parameter (or possibly a parameter that will be implemented in later versions, but hasn't been yet), that's a real problem, not a request for a trivial enhancement.
Comment 2 Bryan Tong Minh 2008-04-05 19:32:52 UTC
Fixed in r32824.
Comment 3 Bryan Tong Minh 2008-07-27 14:05:07 UTC
*** Bug 14942 has been marked as a duplicate of this bug. ***

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


Navigation
Links