Some subscribers to this list who also use MediaWiki APIs in their tools may not know about the mediawiki-api-announce@lists.wikimedia.org and mediawiki-api@lists.wikimedia.org lists, so I am reposting this announcement here. Please respond with any questions/concerns about the API change on the mediawiki-api@lists.wikimedia.org rather than this list.
Bryan
---------- Forwarded message ---------- From: Brad Jorsch (Anomie) bjorsch@wikimedia.org Date: Wed, May 23, 2018 at 7:03 AM Subject: [Mediawiki-api-announce] BREAKING CHANGE: Passing too many values for a multi-valued parameter waring is becoming an error To: mediawiki-api-announce@lists.wikimedia.org
The API has traditionally ignored values beyond the allowed limit, returning a warning for this situation since 2008(!). It's long past time for this error situation to actually raise an error, as requested in https://phabricator.wikimedia.org/T41936.
This is happening in https://gerrit.wikimedia.org/r/433742. It should be deployed to Wikimedia wikis with 1.32.0-wmf.6 or later, see https://www.mediawiki.org/wiki/MediaWiki_1.32/Roadmap for the schedule.
Logs indicate that few clients on Wikimedia wikis are hitting the warning. You can check your client by seeing if you're receiving a "Too many values supplied for parameter" warning, or by using Special:ApiFeatureUsage for your client's user agent and looking for a "too-many-X" code.
If your client is affected, the solution is to divide the values into batches of the appropriate size. Generally the limit is 50 values for clients without the apihighlimits right and 500 for clients with that right. The limits for any particular parameter are documented in the auto-generated help and are available in machine-readable format via action=paraminfo.
-- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation
_______________________________________________ Mediawiki-api-announce mailing list Mediawiki-api-announce@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce
On Wed, May 30, 2018 at 1:27 AM, Bryan Davis bd808@wikimedia.org wrote:
Some subscribers to this list who also use MediaWiki APIs in their tools may not know about the mediawiki-api-announce@lists.wikimedia.org and mediawiki-api@lists.wikimedia.org lists, so I am reposting this announcement here. Please respond with any questions/concerns about the API change on the mediawiki-api@lists.wikimedia.org rather than this list.
BTW, anyone using the MediaWiki action API on an ongoing basis should subscribe to one of those lists to be informed about changes to the API. mediawiki-api-announce is a low-volume announce-only list, while mediawiki-api is a discussion/help list (like this one) that also gets all the announcements.