Last modified: 2012-04-16 09:16: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 T31264, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 29264 - Wrong error code when no action given
Wrong error code when no action given
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Roan Kattouw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-06-03 16:47 UTC by Smallman
Modified: 2012-04-16 09:16 UTC (History)
5 users (show)

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


Attachments

Description Smallman 2011-06-03 16:47:44 UTC
When action isn't in the request, it returns with the error code "help" which could be more specific

For example:
http://en.wikipedia.org/w/api.php?=query&prop=info&titles=Main%20Page&format=xml

vs the correct one:
http://en.wikipedia.org/w/api.php?action=query&prop=info&titles=Main%20Page&format=xml
Comment 1 Brion Vibber 2011-06-03 18:16:56 UTC
Hmm... Roan, would an appropriate thing here be to return an error code that says 'no action' along with the help?

Or is this just the way we handle not having anything else to do?
Comment 2 Roan Kattouw 2011-06-03 18:35:27 UTC
The default value for the action parameter is 'help', so this is expected behavior.

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


Navigation
Links