[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bugs-dist
Subject: [Bug 162044] New: XMLHttpRequest doesn't detect simple XML
From: Ingo Krabbe <ikrabbe.ask () web ! de>
Date: 2008-05-13 13:32:46
Message-ID: 20080513153244.162044.ikrabbe.ask () web ! de
[Download RAW message or body]
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
http://bugs.kde.org/show_bug.cgi?id=162044
Summary: XMLHttpRequest doesn't detect simple XML
Product: konqueror
Version: unspecified
Platform: Gentoo Packages
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: kjs
AssignedTo: konq-bugs kde org
ReportedBy: ikrabbe.ask web de
Version: (using KDE 3.5.8)
Installed from: Gentoo Packages
Compiler: gcc 4.1.1 32bit
OS: Linux
I just wondered why recently my JavaScript code broke down using the requestXML \
member of XMLHttpRequest objects in very simple objects.
I now cross checked the behaviour by storing the Applications answer in a file and \
use that file as the answer xml object, which is detected fine.
The complete protocol data failing is (rebuilding the request with wget):
HTTP/1.1 200 OK
Date: Tue, 13 May 2008 13:05:59 GMT
Server: Apache
Content-Encoding: identity, identity
Cache-control: no-cache=set-cookie, no-cache
Set-cookie: tr_session1=%3Csession key=%22LOGIN:0000000048218D5D.A079%22%3E%3Cchanged \
when=%220000000048299238.2AF4%22 by=%22172.17.9.68:80%22/%3E%3C/session%3E; \
Version=1; path=/
Vary: UserAgent
Connection: close
Content-Type: text/xml
<?xml version="1.0" encoding="utf-8"?>
<login><status>1</status><message>ok</message><code>0</code><flags>132</flags><name>iktest11</name></login>
The valid data file answer is:
HTTP/1.1 200 OK
Date: Tue, 13 May 2008 13:23:38 GMT
Server: Apache
Last-Modified: Tue, 13 May 2008 13:06:48 GMT
ETag: "4512-93-44d1c563b6a00"
Accept-Ranges: bytes
Content-Length: 147
Vary: UserAgent
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: application/xml
<?xml version="1.0" encoding="utf-8"?>
<login><status>1</status><message>ok</message><code>0</code><flags>20</flags><name>ikrabbe</name></login>
Those two files don't really distinguish, but in some header fields. Actually I \
copied the requestText result, where the requestXML member was undefined, to produce \
the file.
I will try to tune the headers with some cgi scripts next to find out, where the \
point really is, the XMLHttpRequest breaks down, but maybe one, familiar with kjs \
programming can imagine this problem from this bug report.
Actually this detection worked a few weeks ago, though I changed header fields a bit \
maybe the content-length is missing ?
In Firefox the same JS Code creates a valid requestXML Document from the same output.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic