https://bugzilla.wikimedia.org/show_bug.cgi?id=29278

--- Comment #14 from Bawolff <[email protected]> 2011-06-20 22:16:05 UTC ---
[mid air collision, so this may repeat a little what Reedy said]
Further simplification of a minimal test case:

var x = new XMLHttpRequest
x.open( 'POST',
'http://localhost/w/REL1_17/api.php?action=edit&text=some_text&format=json&title=Rd&token=%2B%5C&redirect=',
false );
x.send();

(With the page Rd being a redirect to some other page)
----
It seems to be some sort of recursive nesting issue in the result array. Well
if the output format is json(fm), apache segfaults, the other formats throw
exceptions:

dbg gives the following:

<b>Fatal error</b>:  Nesting level too deep - recursive dependency? in
<b>/var/www/w/REL1_17/includes/api/ApiFormatDbg.php</b> on line <b>50</b><br />

xml gives the following:

Exception Caught: Internal error in ApiFormatXml::recXmlPrint: (foo, ...) has
integer keys without _element value. Use ApiResult::setIndexedTagName().

#0 /var/www/w/REL1_17/includes/api/ApiBase.php(1111):
wfDebugDieBacktrace('Internal error ...')
#1 /var/www/w/REL1_17/includes/api/ApiFormatXml.php(140):
ApiBase::dieDebug('ApiFormatXml::r...', '(foo, ...) has ...')
#2 /var/www/w/REL1_17/includes/api/ApiFormatXml.php(155):
ApiFormatXml::recXmlPrint('foo', Array, NULL)
#3 /var/www/w/REL1_17/includes/api/ApiFormatXml.php(72):
ApiFormatXml::recXmlPrint('api', Array, NULL, false)
[...rest of big long backtrace...]


Most interesting of all, the txt format gives me a var_dump of a Title object,
which seems rather wrong. (I noticed on trunk, that the json format seems to
output internal members of a Title object, which seems wrong. Maybe all thats
changed between here and trunk is some magic ::toString stuff allowing json to
print Title objects correctly). Anyways, outputting a title object seems rather
wrong, and I'm going to guess that's where the trouble starts.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to