Page MenuHomePhabricator

VisualEditor: Block format=xml from action=visualeditor API
Closed, ResolvedPublic

Description

Given url:
http://en.wikipedia.org/w/api.php?action=visualeditor&page=Berlin&paction=parse

Return this:
<?xml version="1.0"?>
<api servedby="mw1193">

<error code="internal_api_error_MWException" info="Exception Caught: Internal error in ApiFormatXml::recXmlPrint: (notices, ...) has integer keys without _element value. Use ApiResult::setIndexedTagName()." xml:space="preserve" />

</api>

I guess, I make something wrong, but the error message does not really help me to understand what goes wrong.


Version: unspecified
Severity: minor
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=62452

Details

Reference
bz61017

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 3:05 AM
bzimport set Reference to bz61017.

The action=visualeditor API is purely designed for JSON access; we should inform the user that XML / etc. won't work instead of dying horribly.

Change 119912 had a related patch set uploaded by Jforrester:
Block non-JSON API access to VisualEditor, as it won't work

https://gerrit.wikimedia.org/r/119912

Change 119912 merged by jenkins-bot:
Block non-JSON API access to VisualEditor, as it won't work

https://gerrit.wikimedia.org/r/119912