https://bugzilla.wikimedia.org/show_bug.cgi?id=44696
Web browser: ---
Bug ID: 44696
Summary: Ask API with XML format produces invalid XML (title
tags)
Product: MediaWiki extensions
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: blocker
Priority: Unprioritized
Component: Semantic MediaWiki
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
Child elements under <results> are given the name of the page. It is easy to
create pages with titles that result in illegal XML tag names. Just to name a
few that I've tried:
4me
Some "quoted" text <- an important one for special purpose wikis
xml
Example query:
http://www.mywikidev.com/wiki/api.php?action=ask&query=[[Modification%20date::%3E4%20February%202013]]%20[[Has
property::%2B]]|?Has property&format=xml
<?xml version="1.0"?>
<api>
<query>
<printrequests>
<printrequest label="" typeid="_wpg" mode="2" />
<printrequest label="Has property" typeid="_txt" mode="1" />
</printrequests>
<results>
<some_"quoted"_text fulltext="some "quoted" text"
fullurl="http://www.mywikidev.com/wiki/index.php/some_%22quoted%22_text">
<printouts>
<Has_property>
<value>1234</value>
</Has_property>
</printouts>
</some_"quoted"_text>
</results>
</query>
</api>
Workaround(s): Unknown, but would love to hear of one.
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l