Some subscribers to this list who also use MediaWiki APIs in their
tools may not know about the
mediawiki-api-annou...@lists.wikimedia.org and
mediawiki-...@lists.wikimedia.org lists, so I am reposting this
announcement here. Please respond with any questions/concerns about
the API change on the mediawiki-...@lists.wikimedia.org rather than
this list.

Bryan


---------- Forwarded message ----------
From: Brad Jorsch (Anomie) <bjor...@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-annou...@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-annou...@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce



-- 
Bryan Davis              Wikimedia Foundation    <bd...@wikimedia.org>
[[m:User:BDavis_(WMF)]] Manager, Cloud Services          Boise, ID USA
irc: bd808                                        v:415.839.6885 x6855

_______________________________________________
Wikimedia Cloud Services mailing list
Cloud@lists.wikimedia.org (formerly lab...@lists.wikimedia.org)
https://lists.wikimedia.org/mailman/listinfo/cloud

Reply via email to