Page MenuHomePhabricator

action=purge with forcelinkupdate gives fatal when reach ratelimit
Closed, ResolvedPublic

Description

When using action=purge with forcelinkupdate and it hits the ratelimit, the following stacktrace is shown:

<?xml version="1.0"?><api servedby="srv296"><error code="internal_api_error_MWException" info="Exception Caught: Internal error in ApiResult::setContent: Bad parameter" xml:space="preserve">

#0 /usr/local/apache/common-local/php-1.18/includes/api/ApiBase.php(1241): wfDebugDieBacktrace('Internal error ...')
#1 /usr/local/apache/common-local/php-1.18/includes/api/ApiResult.php(177): ApiBase::dieDebug('ApiResult::setC...', 'Bad parameter')
#2 /usr/local/apache/common-local/php-1.18/includes/api/ApiBase.php(216): ApiResult::setContent(Array, Array)
#3 /usr/local/apache/common-local/php-1.18/includes/api/ApiPurge.php(94): ApiBase-&gt;setWarning(Array)
#4 /usr/local/apache/common-local/php-1.18/includes/api/ApiMain.php(692): ApiPurge-&gt;execute()
#5 /usr/local/apache/common-local/php-1.18/includes/api/ApiMain.php(358): ApiMain-&gt;executeAction()
#6 /usr/local/apache/common-local/php-1.18/includes/api/ApiMain.php(342): ApiMain-&gt;executeActionWithErrorHandling()
#7 /usr/local/apache/common-local/php-1.18/api.php(115): ApiMain->execute()
#8 /usr/local/apache/common-local/live-1.5/api.php(3): require('/usr/local/apac...')
#9 {main}

</error></api>

The line in action=purge is:
$this->setWarning( $this->parseMsg( array( 'actionthrottledtext' ) ) );


Version: 1.18.x
Severity: normal

Details

Reference
bz32643

Event Timeline

bzimport raised the priority of this task from to High.Nov 21 2014, 11:59 PM
bzimport set Reference to bz32643.

Gerrit change 9792 should fix it.

Bug assigned to the patch submitter.

Changeset has been merged to master, and (unless reverted) will therefore be included in the next release.