Author: asko.soukka
Description:
"Automatically resolve redirects"-feature on Wikipedia API causes error with at least one particular page at Finnish Wikipedia (fi.wikipedia.org). I'm not sure whether this is a bug with the API or with the database.
The last time the feature worked correctly for me was on April 4th 2008.
The first time the feature gave me an error was on April 8th 2008.
- An example of a page that doesn't work:
http://fi.wikipedia.org/w/api.php?action=query&titles=Viittomakieli&prop=categories&redirects
<?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>
- An example of a page that does work:
http://fi.wikipedia.org/w/api.php?action=query&titles=Retinitis_pigmentosa&prop=categories&redirects
You are looking at the HTML representation of the XML format.
HTML is good for debugging, but probably is not suitable for your application.
See complete documentation, or API help for more information.
<?xml version="1.0" encoding="utf-8"?>
<api>
<query> <normalized> <n from="Retinitis_pigmentosa" to="Retinitis pigmentosa" /> </normalized> <redirects> <r from="Retinitis pigmentosa" to="Verkkokalvorappeuma" /> </redirects> <pages> <page pageid="151254" ns="0" title="Verkkokalvorappeuma"> <categories> <cl ns="14" title="Luokka:Lääketiedetyngät" /> <cl ns="14" title="Luokka:Perinnölliset sairaudet" /> <cl ns="14" title="Luokka:Silmätaudit" /> </categories> </page> </pages> </query>
</api>
Version: unspecified
Severity: normal
URL: http://fi.wikipedia.org/w/api.php?action=query&titles=Viittomakieli&prop=categories&redirects