http://en.wikipedia.org/w/api.php?action=query&list=allpages&apprtype&apprlevel=
<?xml version="1.0"?>
<api>
<error code="internal_api_error_MWException" info="Exception Caught: Database::makeList: empty input">
#0 /usr/local/apache/common-local/php-1.5/includes/db/Database.php(1024): Database->makeList(Array, 1)
#1 /usr/local/apache/common-local/php-1.5/includes/db/Database.php(981): Database->selectSQLText(Array, Array, Array, 'ApiQueryAllpage...', Array, Array)
#2 /usr/local/apache/common-local/php-1.5/includes/api/ApiQueryBase.php(214): Database->select(Array, Array, Array, 'ApiQueryAllpage...', Array, Array)
#3 /usr/local/apache/common-local/php-1.5/includes/api/ApiQueryAllpages.php(125): ApiQueryBase->select('ApiQueryAllpage...')
#4 /usr/local/apache/common-local/php-1.5/includes/api/ApiQueryAllpages.php(43): ApiQueryAllpages->run()
#5 /usr/local/apache/common-local/php-1.5/includes/api/ApiQuery.php(211): ApiQueryAllpages->execute()
#6 /usr/local/apache/common-local/php-1.5/includes/api/ApiMain.php(422): ApiQuery->execute()
#7 /usr/local/apache/common-local/php-1.5/includes/api/ApiMain.php(258): ApiMain->executeAction()
#8 /usr/local/apache/common-local/php-1.5/includes/api/ApiMain.php(242): ApiMain->executeActionWithErrorHandling()
#9 /usr/local/apache/common-local/php-1.5/api.php(77): ApiMain->execute()
#10 /usr/local/apache/common-local/live-1.5/api.php(3): require('/usr/local/apac...')
#11 {main}
</error>
</api>
Shouldnt it really fail more gracefully? (obv, the query string is wrong)
Cheers
Sam
Version: 1.13.x
Severity: enhancement