Page MenuHomePhabricator

API: Internal error with empty 'generator' parameter
Closed, ResolvedPublic

Description

Author: matthew.britton

Description:
The following query:

http://en.wikipedia.org/w/api.php?action=query&generator=

gives

<?xml version="1.0"?>
<api>

<error code="internal_api_error_MWException" info="Exception Caught: Internal error in ApiQuery::executeGeneratorModule: Unknown generator=Array">

#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/ApiQuery.php(425): ApiBase::dieDebug('ApiQuery::execu...', 'Unknown generat...')
#2 /usr/local/apache/common-local/php-1.5/includes/api/ApiQuery.php(216): ApiQuery->executeGeneratorModule(Array, Array)
#3 /usr/local/apache/common-local/php-1.5/includes/api/ApiMain.php(414): ApiQuery->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>
</api>

This should probably be handled in the same way as unrecognized values for 'generator':

http://en.wikipedia.org/w/api.php?action=query&generator=foo


Version: unspecified
Severity: minor

Details

Reference
bz18597

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:32 PM
bzimport set Reference to bz18597.