Robert Owen wrote:

> In the Slide webdav client, I am getting -1 for the status for properties
> returned in a PROPFIND or PROPPATCH (getStatus on
> org.apache.webdav.lib.Property). The problem is that the multistatus can
> have a status element at the same level as href[Rob]  (as per RFC2518), but
> for these methods usually has the status value in a propstat element (a
> combined status for a number of properties). The code in
> ResponseWithinMultiStatus in XMLResponseMethodBase only looks for a status
> element on the same level as href with getFirstElement[Rob] , doesn't find
> it and returns -1.
>
> This may not be the best way of fixing this (using XPath might also be an
> option), and I'm not sure what impact changing the interface in BaseProperty
> will have on things that I am not using, but this is now working for me.

Nice catch,

I don't want to introduce a depecdency between BaseProperty and
ResponseWithinMultistatus
therefor I'm solving it in a different way.

I'm also changing the ResponseWithinMultistatus.getStatusCode to return the
status code of the first propstat, I think this is what people expect and the
most common case will be one popstat anyway.


Dirk

Reply via email to