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

       Web browser: ---
             Bug #: 29275
           Summary: ArticleFeedback API: exception thrown if no ratings
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: Unprioritized
         Component: ArticleFeedback
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified


In ApiQueryArticlceFeedback, passing a page ID for which article feedback is
not enabled produces an error.


http://en.wikipedia.org/w/api.php?action=query&list=articlefeedback&afpageid=12345

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

#0 /usr/local/apache/common-local/php-1.17/includes/api/ApiBase.php(1111):
wfDebugDieBacktrace('Internal error ...')
#1 /usr/local/apache/common-local/php-1.17/includes/api/ApiResult.php(202):
ApiBase::dieDebug('ApiResult::setI...', 'Bad parameter')
#2
/usr/local/apache/common-local/php-1.17/extensions/ArticleFeedback/api/ApiQueryArticleFeedback.php(114):
ApiResult->setIndexedTagName(NULL, 'r')
#3 /usr/local/apache/common-local/php-1.17/includes/api/ApiQuery.php(262):
ApiQueryArticleFeedback->execute()
#4 /usr/local/apache/common-local/php-1.17/includes/api/ApiMain.php(657):
ApiQuery->execute()
#5 /usr/local/apache/common-local/php-1.17/includes/api/ApiMain.php(339):
ApiMain->executeAction()
#6 /usr/local/apache/common-local/php-1.17/includes/api/ApiMain.php(323):
ApiMain->executeActionWithErrorHandling()
#7 /usr/local/apache/common-local/php-1.17/api.php(115): ApiMain->execute()
#8 /usr/local/apache/common-local/live-1.5/api.php(3):
require('/usr/local/apac...')
#9 {main}

</error>


This should be handled and a more user-friendly error message provided.

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