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

           Summary: ApiParamInfo: Internal error with empty parameter
           Product: MediaWiki
           Version: unspecified
          Platform: All
               URL: http://en.wikipedia.org/w/api.php?action=paraminfo&modul
                    es=
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: API
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


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.


-- 
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