You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2003/02/06 15:18:24 UTC

DO NOT REPLY [Bug 11637] - PROPFIND returns invalid XML

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11637>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11637

PROPFIND returns invalid XML





------- Additional Comments From roland.betz@dlr.de  2003-02-06 14:18 -------
I have reproduced this bug using the latest Apache 2.0.44 (Win32).
Below is the communication protocol.
There are three requests. The first one is a OPTION request showing server info:

HTTP/1.1 200 OK
Content-Type: text/plain; charset=ISO-8859-1
MS-Author-Via: DAV
Date: Thu, 06 Feb 2003 13:11:47 GMT
Allow:
OPTIONS,GET,HEAD,POST,DELETE,TRACE,PROPFIND,PROPPATCH,COPY,MOVE,PUT,LOCK,UNLOCK
DAV: 1,2
Content-Length: 0
Server: Apache/2.0.44 (Win32) DAV/2


The second one sets a DAV:link property on some resource.
Request:
<?xml version="1.0" encoding="utf-8" ?>
<D:propertyupdate xmlns:D="DAV:">
<D:set>
<D:prop  xmlns:ns0="TENT:">
<ns0:parent><D:link xmlns:D="DAV:"
xmlns:user="TENT:"><D:src>http://thrud:8080/webdav/blubber</D:src><D:dst>http://thrud:8080</D:dst></D:link></ns0:parent>
</D:prop>
</D:set>
</D:propertyupdate>

Response:
HTTP/1.1 207 Multi-Status
Content-Type: text/xml; charset="utf-8"
Date: Thu, 06 Feb 2003 13:11:49 GMT
Content-Length: 280
Server: Apache/2.0.44 (Win32) DAV/2

Response data:
<?xml version="1.0" encoding="utf-8"?>
<D:multistatus xmlns:D="DAV:" xmlns:ns1="TENT:" xmlns:ns0="DAV:">
<D:response>
<D:href>/webdav/blubber</D:href>
<D:propstat>
<D:prop>
<ns1:parent/>

</D:prop>
<D:status>HTTP/1.1 200 OK</D:status>
</D:propstat>
</D:response>
</D:multistatus>


The third one reads this property with a PROPFIND. The final response shows that
the namespaces within the property value are wrong.
Request:
<?xml version="1.0" encoding="utf-8" ?>
<D:propfind xmlns:D="DAV:">
<D:prop  xmlns:ns0="TENT:">
<ns0:parent />
</D:prop></D:propfind>

Header Depth: 0
Response:
HTTP/1.1 207 Multi-Status
Content-Type: text/xml; charset="utf-8"
Date: Thu, 06 Feb 2003 13:11:49 GMT
Content-Length: 435
Server: Apache/2.0.44 (Win32) DAV/2

Response data:
<?xml version="1.0" encoding="utf-8"?>
<D:multistatus xmlns:D="DAV:">
<D:response xmlns:ns0="DAV:" xmlns:ns1="TENT:">
<D:href>/webdav/blubber</D:href>
<D:propstat>
<D:prop>
<ns1:parent><ns9107104:link><ns9107104:src>http://thrud:8080/webdav/blubber</ns9107104:src><ns9107104:dst>http://thrud:8080</ns9107104:dst></ns9107104:link></ns1:parent>
</D:prop>
<D:status>HTTP/1.1 200 OK</D:status>
</D:propstat>
</D:response>
</D:multistatus>

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org