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