Last modified: 2014-03-26 22:41:46 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 T63017, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 61017 - VisualEditor: Block format=xml from action=visualeditor API
VisualEditor: Block format=xml from action=visualeditor API
Status: RESOLVED FIXED
Product: VisualEditor
Classification: Unclassified
MediaWiki integration (Other open bugs)
unspecified
All All
: Low minor
: VE-deploy-2014-03-27
Assigned To: James Forrester
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-02-07 10:43 UTC by Kelson [Emmanuel Engelhart]
Modified: 2014-03-26 22:41 UTC (History)
6 users (show)

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


Attachments

Description Kelson [Emmanuel Engelhart] 2014-02-07 10:43:28 UTC
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.
Comment 1 James Forrester 2014-03-21 00:46:01 UTC
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.
Comment 2 Gerrit Notification Bot 2014-03-21 00:46:13 UTC
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
Comment 3 Gerrit Notification Bot 2014-03-26 21:49:05 UTC
Change 119912 merged by jenkins-bot:
Block non-JSON API access to VisualEditor, as it won't work

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

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


Navigation
Links