You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by Robert Owen <eu...@sas.com> on 2001/11/02 19:00:23 UTC

Default namespace assumed

Doing a PROPPATCH with properties that do not have a namespace (ie. no
namespace prefix) are returned in the DAV: namespace. Testing on Apache
(mod_dav), IIS and WSS this does not happen. For example, the following
PROPPATCH 

PROPPATCH /file HTTP/1.1
...
?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>

Now a PROPFIND (for all properties as a PROPFIND for <SimplePropertyName>
does not work) gives:

HTTP/1.1 207 Multi-Status
...
<?xml version="1.0" encoding="utf-8" ?>
<multistatus xmlns="DAV:" xmlns:S="http://jakarta.apache.org/slide/">
   <response>
      ...
      <SimplePropertyName
xmlns="DAV:">SimplePropertyValue</SimplePropertyName>
   </response>
</multistatus> 

placing SimplePropertyName in the DAV: namespace, which it isn't. Even if
the SimplePropertyName element did not have the xmlns="DAV:" qualifier, it
would still be in the DAV: namespace from the specification on the
multistatus element. The SimplePropertyName should have the namespace reset,
as in

<SimplePropertyName xmlns="">SimplePropertyValue</SimplePropertyName>

Using a prefix throughout for the DAV: namespace (eg. xmlns:D="DAV:") could
also work in this case, but for some reason a default namespace is used in
this PROPFIND response. 


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>