Last modified: 2008-04-12 18:49:59 UTC
When querying the MediaWiki API for information on certain redirect pages, MediaWiki returns a error code rather than the information requested. Pages known to have problems are "Prince (artist)" and "Main page". Steps to reproduce: 1) Visit the URL http://en.wikipedia.org/w/api.php?action=query&redirects=1&titles=Prince%20(artist) Expected result: <?xml version="1.0" encoding="utf-8"?> <api> <query> <redirects> <r from="Prince (artist)" to="Prince (musician)" /> </redirects> <pages> <page pageid="57317" ns="0" title="Prince (musician)" /> </pages> </query> </api> Actual result: <?xml version="1.0" encoding="utf-8"?> <api> <error code="internal_api_error_MWException" info="Exception Caught: Internal error in ApiPageSet::getRedirectTargets: Invalid redirect IDs were found"> #0 /usr/local/apache/common-local/php-1.5/includes/api/ApiBase.php(659): wfDebugDieBacktrace('Internal error ...') #1 /usr/local/apache/common-local/php-1.5/includes/api/ApiPageSet.php(540): ApiBase::dieDebug('ApiPageSet::get...', 'Invalid redirec...') #2 /usr/local/apache/common-local/php-1.5/includes/api/ApiPageSet.php(494): ApiPageSet->getRedirectTargets() #3 /usr/local/apache/common-local/php-1.5/includes/api/ApiPageSet.php(365): ApiPageSet->resolvePendingRedirects() #4 /usr/local/apache/common-local/php-1.5/includes/api/ApiPageSet.php(250): ApiPageSet->initFromTitles(Array) #5 /usr/local/apache/common-local/php-1.5/includes/api/ApiQuery.php(197): ApiPageSet->execute() #6 /usr/local/apache/common-local/php-1.5/includes/api/ApiMain.php(354): ApiQuery->execute() #7 /usr/local/apache/common-local/php-1.5/includes/api/ApiMain.php(222): ApiMain->executeAction() #8 /usr/local/apache/common-local/php-1.5/includes/api/ApiMain.php(207): 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>
*** This bug has been marked as a duplicate of bug 13651 ***