https://bugzilla.wikimedia.org/show_bug.cgi?id=18597

           Summary: API: Internal error with empty 'generator' parameter
           Product: MediaWiki
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: Normal
         Component: API
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


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


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to