Last modified: 2014-03-31 18:47:24 UTC
While deploying, I noticed numerous "Internal error in ApiFormatFeedWrapper::execute: Invalid feed class/item" exceptions in fluorine:/a/mw-log/exception.log 2014-03-26 21:40:17 mw1197 enwiki: [659b7cd8] /w/api.php?hidebots=1&days=7&limit=50&hidewikidata=1&action=feedrecentchanges&feedformat=atom Exception from line 2008 of /usr/local/apache/common-local/php-1.23wmf18/includes/api/ApiBase.php: Internal error in ApiFormatFeedWrapper::execute: Invalid feed class/item in exception.log. All from enwiki. Most are this URL, some are feedformat=rss instead of atom.
What appears to be happening here is that an API error is being raised somewhere after the point where the custom feed printer is initialized, and the custom feed printer chokes when asked to print that API error. I don't see any obvious candidates for the cause of the original error, but that doesn't matter much since this situation should be handled anyway. For testing, this bug can be reproduced by locally editing ApiFeedRecentChanges to throw an exception from its execute() method.
Change 121381 had a related patch set uploaded by Anomie: API: Allow for format modules that cannot handle errors https://gerrit.wikimedia.org/r/121381
Change 121381 merged by jenkins-bot: API: Allow for format modules that cannot handle errors https://gerrit.wikimedia.org/r/121381
This should be deployed to WMF wikis with 1.23wmf21, see https://www.mediawiki.org/wiki/MediaWiki_1.23/Roadmap for the schedule.