Page MenuHomePhabricator

API request returns invalid XML
Closed, ResolvedPublic

Description

Author: carnildo

Description:
The malformed XML document

Visit the URL http://en.wikipedia.org/w/api.php?action=query&format=xml&iiprop=comment&prop=imageinfo&titles=Image:Shakerredraider.jpg

Expected result: A well-formed XML document

Actual result: The attached document. The character at byte offset 199 is not permitted in XML.


Version: unspecified
Severity: normal

Attached:

Details

Reference
bz16101

Related Objects

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:19 PM
bzimport added a project: MediaWiki-API.
bzimport set Reference to bz16101.

soxred93 wrote:

The error was because the user upploaded with a horrible summary.

Bryan.TongMinh wrote:

All UTF should be sanitized perhaps before outputting it.

  • This bug has been marked as a duplicate of bug 15261 ***