Last modified: 2008-03-26 12:24:10 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T15460, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 13460 - API generates an internal error when filtering image links by namespace
API generates an internal error when filtering image links by namespace
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-03-21 02:34 UTC by carnildo
Modified: 2008-03-26 12:24 UTC (History)
2 users (show)

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


Attachments

Description carnildo 2008-03-21 02:34:35 UTC
When filtering an API query of image links by namespace to only include links in namespace 0, MediaWiki generates an internal error.

Steps to reproduce:

1) Visit the link http://en.wikipedia.org/w/api.php?action=query&iutitle=Image:!!!%20(album).jpg&iunamespace=0&list=imageusage

Expected results:

<?xml version="1.0" encoding="utf-8"?>
<api>
  <query>
    <imageusage>
      <iu pageid="2556962" ns="0" title="!!! (album)" />
    </imageusage>
  </query>
</api>

Actual results:

<?xml version="1.0" encoding="utf-8"?>
<api>
  <error code="internal_api_error_MWException" info="Exception Caught: Database::makeList: empty input">

#0 /usr/local/apache/common-local/php-1.5/includes/Database.php(1237): Database->makeList(Array, 1)
#1 /usr/local/apache/common-local/php-1.5/includes/api/ApiQueryBase.php(131): Database->select(Array, Array, Array, 'ApiQueryBacklin...', Array)
#2 /usr/local/apache/common-local/php-1.5/includes/api/ApiQueryBacklinks.php(172): ApiQueryBase->select('ApiQueryBacklin...')
#3 /usr/local/apache/common-local/php-1.5/includes/api/ApiQueryBacklinks.php(90): ApiQueryBacklinks->run()
#4 /usr/local/apache/common-local/php-1.5/includes/api/ApiQuery.php(210): ApiQueryBacklinks->execute()
#5 /usr/local/apache/common-local/php-1.5/includes/api/ApiMain.php(356): ApiQuery->execute()
#6 /usr/local/apache/common-local/php-1.5/includes/api/ApiMain.php(224): ApiMain->executeAction()
#7 /usr/local/apache/common-local/php-1.5/includes/api/ApiMain.php(209): ApiMain->executeActionWithErrorHandling()
#8 /usr/local/apache/common-local/php-1.5/api.php(77): ApiMain->execute()
#9 /usr/local/apache/common-local/live-1.5/api.php(3): require('/usr/local/apac...')
#10 {main}

</error>
</api>
Comment 1 Bryan Tong Minh 2008-03-21 09:52:38 UTC
Fixed in r32279 by Aaron.
Comment 2 Roan Kattouw 2008-03-26 12:24:10 UTC
*** Bug 13517 has been marked as a duplicate of this bug. ***

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


Navigation
Links