Last modified: 2008-04-12 18:49:59 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 13717 - MediaWiki API returns an error when querying certain redirects
MediaWiki API returns an error when querying certain redirects
Status: RESOLVED DUPLICATE of bug 13651
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Normal major (vote)
: ---
Assigned To: Roan Kattouw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-04-12 18:41 UTC by carnildo
Modified: 2008-04-12 18:49 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description carnildo 2008-04-12 18:41:44 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>
Comment 1 Alexandre Emsenhuber [IAlex] 2008-04-12 18:49:59 UTC

*** This bug has been marked as a duplicate of bug 13651 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links