Page MenuHomePhabricator

ApiQueryParseTree doesn't work when XML format is requested
Closed, InvalidPublic

Description

Author: neilk

Description:
Something like this query:

http://wiki.ivy.local/w/api.php?action=query&prop=parsetree&titles=Main%20Page&format=json

Returns a sensible data structure. However, when formatted as XML, an error is returned:

Warning: htmlspecialchars() expects parameter 1 to be string, object given in /Users/neilk/Sites/trunk/includes/Sanitizer.php on line 978

I've tried other variants and sometimes I do get reasonable XML back but with empty contents. Is it not possible for the API to return arbitrary PHP data structures? Is there something to be done with 'indexed tags'?


Version: unspecified
Severity: normal

Details

Reference
bz34058

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 12:11 AM
bzimport added a project: VisualEditor.
bzimport set Reference to bz34058.
bzimport added a subscriber: Unknown Object (MLST).

neilk wrote:

The code in question was added r110344.

Fixed with new version of VE (code replaced).

Mass-moving old VisualEditor tickets to the VE product. Search for this message to mass-delete bugmail.