Page MenuHomePhabricator

exportnowrap=true causes internal error
Closed, ResolvedPublic

Description

Author: sam.korn

Description:
A query that works without a normal query or with export=true fails when using exportnowrap=true

Compare

http://en.wikipedia.org/w/api.php?action=query&prop=revisions&titles=Main%20Page&rvlimit=5&rvprop=timestamp%7Cuser%7Ccomment&format=xmlfm
http://en.wikipedia.org/w/api.php?action=query&prop=revisions&titles=Main%20Page&rvlimit=5&rvprop=timestamp%7Cuser%7Ccomment&format=xmlfm&export=true
http://en.wikipedia.org/w/api.php?action=query&prop=revisions&titles=Main%20Page&rvlimit=5&rvprop=timestamp%7Cuser%7Ccomment&format=xmlfm&exportnowrap=true

The message I receive is:

Internal error
Internal error in ApiFormatRaw::getMimeType: No MIME type set for raw formatter
Backtrace:
#0 /usr/local/apache/common-local/php-1.5/includes/api/ApiBase.php(846): wfDebugDieBacktrace('Internal error ...')
#1 /usr/local/apache/common-local/php-1.5/includes/api/ApiFormatRaw.php(44): ApiBase::dieDebug('ApiFormatRaw::g...', 'No MIME type se...')
#2 /usr/local/apache/common-local/php-1.5/includes/api/ApiFormatBase.php(112): ApiFormatRaw->getMimeType()
#3 /usr/local/apache/common-local/php-1.5/includes/api/ApiMain.php(455): ApiFormatBase->initPrinter(true)
#4 /usr/local/apache/common-local/php-1.5/includes/api/ApiMain.php(290): ApiMain->printResult(true)
#5 /usr/local/apache/common-local/php-1.5/includes/api/ApiMain.php(245): ApiMain->executeActionWithErrorHandling()
#6 /usr/local/apache/common-local/php-1.5/api.php(77): ApiMain->execute()
#7 /usr/local/apache/common-local/live-1.5/api.php(3): require('/usr/local/apac...')
#8 {main}


Version: 1.15.x
Severity: normal

Details

Reference
bz17673

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:32 PM
bzimport set Reference to bz17673.

&exportnowrap should only be used in conjunction with &export, not by itself. Of course a lone &exportnowrap should just be ignored rather than causing these errors, fixed that in r47827.

  • Bug 18026 has been marked as a duplicate of this bug. ***

I mean to say I still get the error, and I'm up to r48562.

Reopening, as still seen at r48623.

(In reply to comment #5)

Reopening, as still seen at r48623.

Fixed in r48629