To support a valid PROPFIND response for properties that have no namespace
and not part of the DAV: default namespace (see mail below), here are two
patch files for PropFindMethod and XMLPrinter respectively. It should also
restore support for general namespaces in PROPFIND, which seems to be
missing in the current source.

In an ideal world, the PROPFIND response could be more efficient if the
namespaces used in the response could be cached in the header (as is done
for FIND_BY_PROPERTY case, although in this case the namespaces are provided
up front on the request).

 

-----Original Message-----
From: Robert Owen 
Sent: 29 January 2002 12:39
To: '[EMAIL PROTECTED]'
Subject: "No namespace" support in PROPFIND WebDAV server

Having a quick look at the PROPFIND implementation on the server, there
seems to be a problem with the namespace handling in the PROPFIND response.

1) Submit a PROPPATCH with a property that does not have a namespace

PROPPATCH /slide/files/TestResource HTTP/1.1
Content-Type: text/xml; charset=utf-8
Content-Length: 403

<?xml version="1.0" encoding="utf-8" ?>
<D:propertyupdate xmlns:D="DAV:">
   <D:set>
      <D:prop>
         <SimplePropertyName>SimplePropertyValue</SimplePropertyName>
      </D:prop>
   </D:set>
</D:propertyupdate>


2) PROPFIND returns an incorrect namespace/name for the property

<?xml version="1.0" encoding="utf-8" ?>
<multistatus xmlns="DAV:" xmlns:S=http://jakarta.apache.org/slide/>
   <response>
      <prop>
 
<ns0:SimplePropertyName>SimplePropertyValue</ns0:SimplePropertyName>
      </prop>
   </response>
</multistatus>


3) PROPFIND response should reset the default namespace for this property
without a namespace prefix

<SimplePropertyName xmlns="">SimplePropertyValue<SimplePropertyName>

Attachment: PropFindMethod.fix
Description: Binary data

Attachment: XMLPrinter.fix
Description: Binary data

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to