Last modified: 2009-03-18 23:57:28 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 T20026, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 18026 - exportnowrap busted
exportnowrap busted
Status: RESOLVED DUPLICATE of bug 17673
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.15.x
All All
: Normal trivial (vote)
: ---
Assigned To: Roan Kattouw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-03-17 23:38 UTC by Dan Jacobson
Modified: 2009-03-18 23:57 UTC (History)
4 users (show)

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


Attachments

Description Dan Jacobson 2009-03-17 23:38:08 UTC
I think exportnowrap is busted
$ w3m -no-proxy -dump "http://test.wikipedia.org/w/api.php?action=query&titles=Main%20Page&export"|wc
    127     530    8475
$ w3m -no-proxy -dump "http://test.wikipedia.org/w/api.php?action=query&titles=Main%20Page&exportnowrap"|wc
     23      49     914
$ GET "http://test.wikipedia.org/w/index.php?title=Main%20Page&action=raw"|wc
     37     319    2950
Comment 1 Brion Vibber 2009-03-17 23:43:15 UTC
http://test.wikipedia.org/w/api.php?action=query&titles=Main%20Page&exportnowrap


Internal error in ApiFormatRaw::getMimeType: No MIME type set for raw formatter

Backtrace:

#0 /home/wikipedia/common/php-1.5/includes/api/ApiBase.php(846): wfDebugDieBacktrace('Internal error ...')
#1 /home/wikipedia/common/php-1.5/includes/api/ApiFormatRaw.php(44): ApiBase::dieDebug('ApiFormatRaw::g...', 'No MIME type se...')
#2 /home/wikipedia/common/php-1.5/includes/api/ApiFormatBase.php(112): ApiFormatRaw->getMimeType()
#3 /home/wikipedia/common/php-1.5/includes/api/ApiMain.php(455): ApiFormatBase->initPrinter(true)
#4 /home/wikipedia/common/php-1.5/includes/api/ApiMain.php(290): ApiMain->printResult(true)
#5 /home/wikipedia/common/php-1.5/includes/api/ApiMain.php(245): ApiMain->executeActionWithErrorHandling()
#6 /home/wikipedia/common/php-1.5/api.php(77): ApiMain->execute()
#7 /usr/local/apache/common-local/live-1.5/api.php(3): require('/home/wikipedia...')
#8 {main}
Comment 2 Roan Kattouw 2009-03-18 15:28:19 UTC
Was reported earlier and fixed on trunk 3 weeks ago (!), but the fix hasn't gone live yet, which is quite worrying (scap, Brion, scap!)

Also note that this is an incorrect use of &exportnowrap: both &export and &exportnowrap must be used. The api.php documentation was updated to mention this in the same revision.

*** This bug has been marked as a duplicate of bug 17673 ***

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


Navigation
Links