Last modified: 2014-10-27 05:54:24 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 T69577, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 67577 - ApiSandbox throws JavaScript exception when trying to execute action=query with no query modules
ApiSandbox throws JavaScript exception when trying to execute action=query wi...
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
ApiSandbox (Other open bugs)
master
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: javascript
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-07-07 03:49 UTC by This, that and the other (TTO)
Modified: 2014-10-27 05:54 UTC (History)
3 users (show)

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


Attachments

Description This, that and the other (TTO) 2014-07-07 03:49:09 UTC
The API query "action=query&titles=Baklava" is perfectly valid.

However, when trying to execute this query using ApiSandbox, we get "TypeError: obj is null" in the browser JS console.

Caused by line 357 of resources/main.js:

if ( action === 'query' ) {
    var lists = [], metas = [], props = [];
>>  $.each( $query.val(), function ( index, queryParam ) {

$query.val() is null when no query types are selected.
Comment 1 Gerrit Notification Bot 2014-10-25 20:31:52 UTC
Change 168786 had a related patch set uploaded by Umherirrender:
Fix fatal on empty query submodule list

https://gerrit.wikimedia.org/r/168786
Comment 2 Gerrit Notification Bot 2014-10-27 00:03:49 UTC
Change 168786 merged by jenkins-bot:
Fix fatal on empty query submodule list

https://gerrit.wikimedia.org/r/168786
Comment 3 This, that and the other (TTO) 2014-10-27 05:54:24 UTC
Confirmed on beta labs.

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


Navigation
Links