Page MenuHomePhabricator

ApiParamInfo: Internal error with empty parameter
Closed, ResolvedPublic

Description

An empty &modules= or &querymodules= gives a internal error:

<error code="internal_api_error_MWException" info="Exception Caught: Internal error in ApiResult::setIndexedTagName: Bad parameter">

#0 /usr/local/apache/common-local/php-1.5/includes/api/ApiBase.php(856): wfDebugDieBacktrace('Internal error ...')
#1 /usr/local/apache/common-local/php-1.5/includes/api/ApiResult.php(192): ApiBase::dieDebug('ApiResult::setI...', 'Bad parameter')
#2 /usr/local/apache/common-local/php-1.5/includes/api/ApiParamInfo.php(61): ApiResult->setIndexedTagName(NULL, 'module')
#3 /usr/local/apache/common-local/php-1.5/includes/api/ApiMain.php(414): ApiParamInfo->execute()
#4 /usr/local/apache/common-local/php-1.5/includes/api/ApiMain.php(232): ApiMain->executeAction()
#5 /usr/local/apache/common-local/php-1.5/includes/api/ApiMain.php(216): ApiMain->executeActionWithErrorHandling()
#6 /usr/local/apache/common-local/php-1.5/api.php(79): ApiMain->execute()
#7 /usr/local/apache/common-local/live-1.5/api.php(3): require('/usr/local/apac...')
#8 {main}

</error>

Please handled this in the same way as unrecognized values for the param. Thanks.


Version: unspecified
Severity: enhancement
URL: http://en.wikipedia.org/w/api.php?action=paraminfo&modules=

Details

Reference
bz18710

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:33 PM
bzimport added a project: MediaWiki-API.
bzimport set Reference to bz18710.
demon added a comment.May 7 2009, 8:09 PM

Fixed in r50320