Discussion:
[WikimediaMobile] Fwd: [Mediawiki-api-announce] BREAKING CHANGE: Some missing parameter error codes are changing
Adam Baso
2018-07-25 14:41:54 UTC
Permalink
Cross post. mediawiki-api-announce is highly recommended if you write code
consuming the Action API.

---------- Forwarded message ---------
From: Brad Jorsch (Anomie) <***@wikimedia.org>
Date: Wed, Jul 25, 2018 at 8:43 AM
Subject: [Mediawiki-api-announce] BREAKING CHANGE: Some missing parameter
error codes are changing
To: <mediawiki-api-***@lists.wikimedia.org>


It was noticed[1] that the error messages for "missing parameter" errors
were not including the module prefix, for example a query to
action=query&list=search could complain that the "search" parameter must be
set when the actual parameter name is "srsearch". This extends to the error
code, which in this example is "nosearch" rather than "nosrsearch".

This is now fixed, and should be deployed to Wikimedia sites with MediaWiki
1.32.0-wmf.15 and later. See
https://www.mediawiki.org/wiki/MediaWiki_1.32/Roadmap for a schedule.

If your client is checking for specific missing parameter error codes, it
may need to be updated for the changed codes.

[1]: https://phabricator.wikimedia.org/T200155
--
Brad Jorsch (Anomie)
Senior Software Engineer
Wikimedia Foundation
Loading...