Last modified: 2009-03-20 11:41:11 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 17673 - exportnowrap=true causes internal error
exportnowrap=true causes internal error
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.15.x
All All
: Normal normal (vote)
: ---
Assigned To: Roan Kattouw
:
: 18026 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-02-26 05:44 UTC by Sam Korn
Modified: 2009-03-20 11:41 UTC (History)
4 users (show)

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


Attachments

Description Sam Korn 2009-02-26 05:44:17 UTC
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}
Comment 1 Roan Kattouw 2009-02-26 10:12:12 UTC
&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.
Comment 2 Roan Kattouw 2009-03-18 15:28:19 UTC
*** Bug 18026 has been marked as a duplicate of this bug. ***
Comment 4 Dan Jacobson 2009-03-19 01:52:43 UTC
I mean to say I still get the error, and I'm up to r48562.
Comment 5 Dan Jacobson 2009-03-20 04:31:44 UTC
Reopening, as still seen at r48623.
Comment 6 Roan Kattouw 2009-03-20 11:41:11 UTC
(In reply to comment #5)
> Reopening, as still seen at r48623.
> 

Fixed in r48629

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


Navigation
Links