Last modified: 2014-05-08 15:19:36 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 T67031, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 65031 - API exportnowrap does not include XML prolog
API exportnowrap does not include XML prolog
Status: RESOLVED DUPLICATE of bug 11959
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-05-08 12:41 UTC by John Mark Vandenberg
Modified: 2014-05-08 15:19 UTC (History)
4 users (show)

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


Attachments

Description John Mark Vandenberg 2014-05-08 12:41:40 UTC
Using API query with format=xml , a XML prolog is included in the results.

When 'export' is enabled in the request, a XML prolog is included in the results.

However if 'exportnowrap' is then enabled, the XML prolog is omitted.

While the HTTP headers include the right information:
   Content-Type:text/xml; charset=utf-8

I think it is worth including the XML prolog to be consistent with other API calls that return XML.

Bug 11959 is about a similar problem when using the front end Special:Export , which was wontfixed.
Comment 1 Brad Jorsch 2014-05-08 15:19:36 UTC
action=query&export=1&exportnowrap=1 just outputs whatever WikiExporter gives back. If you want the exported data to include the prolog, follow up on bug 11959.

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

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


Navigation
Links