https://bugzilla.wikimedia.org/show_bug.cgi?id=17673
Summary: exportnowrap=true causes internal error
Product: MediaWiki
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: Normal
Component: API
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
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}
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l