https://bugzilla.wikimedia.org/show_bug.cgi?id=35305
Web browser: ---
Bug #: 35305
Summary: Borked API response has html version appended
Product: MediaWiki
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Database
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
Mobile Platform: ---
I did an edit via the API, and had the API respond with the normal xml
response, and the HTML version of the page was appended.
I had the following post:
format=xml&action=edit&title=Category:Book+of+Exodus+%28Bible+Illustrations+by+Sweet+Media%29&text={{en|1=Bible+illustrations+from+http:%2F%2Fwww%2Edsmedia%2Eorg%2Fresources%2Fillustrations%2Fsweet%2Dpublishing%2FExodus}}%D%A[[Category:Book+of+Exodus]]+[[Category:Media+contributed+by+the+Sweet+Publishing]]&summary=Creating+category+for+biblical+book+illustrations+[[Commons:Bots%2FRequests%2FOrophinBot+2]]&bot=1&token=3000331c2badee4aec034824cb9bb54d%2B\
And got the following reply:
<?xml version="1.0"?><api><edit result="Success" pageid="18746270"
title="Category:Book of Exodus (Bible Illustrations by Sweet Media)"
nochange="" /></api><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" dir="ltr" class="client-nojs"
xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Database error - Wikimedia Commons</title>
......
The response included the html page appended to the normal xml response.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l