Bug #1622

response from save.php is not parsed correctly by xmlhttp

Added by Giulio Moro almost 9 years ago. Updated almost 9 years ago.

Status:ResolvedStart date:2016-02-22
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

... as a consequence, the xmlhttp.responseXML is always empty.
setting

                xmlhttp.overrideMimeType('text/xml');

as I did for #1616 does note seem to work.
I had to use the stronger workaround suggested here http://stackoverflow.com/questions/3781387/responsexml-always-null :
var parser = new DOMParser();
var xmlDoc = parser.parseFromString(xmlhttp.responseText, "application/xml");

This works. patch file attached

maybe this is a php-version- or php-configuration-dependent issue?
It happens to me when using apache2 and
PHP 5.5.30 (cli) (built: Oct 23 2015 17:21:45)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies
on MacOS El Capitan

(when running the server in python it works fine.)

diff -r 26b9c01ad2cc core.js.patch Magnifier 1.02 KB, downloaded 13 times Giulio Moro, 2016-02-22 04:07 AM

History

#1 Updated by Nicholas Jillings almost 9 years ago

  • Status changed from New to Resolved

Again, merged in your changes.

Also available in: Atom PDF