Re: Question about WebDAV MOVE/COPY with Overwrite header true

Julian Reschke <[email protected]>
Newsgroups gmane.ietf.webdav
Message-ID <[email protected]>
Till Niese wrote:
> 
> Hello,
> 
> I'm currently working on a WebDAV Server implementation in php.
> But i'm unsure about the correct behavior of MOVE and COPY with 
> Overwrite true and Depth infinity of a collection to a destination that 
> already exists.
> What will be the correct behavior if there is a collection or resource 
> inside the destination collection that can't be deleted cause of a lock 
> or missing permissions.
> Will the complete MOVE or COPY fail cause the DELETE on the destination 
> failed ?

It depends on the implementation. WebDAV only requires best effort.

> And if the MOVE or COPY fails should the same Multistatus header a 
> DELETE with "Depth: infinity" on this collection would return, be 
> returned ?

That's the case shown in 
<http://greenbytes.de/tech/webdav/rfc4918.html#rfc.section.9.8.8>, isn't it?

BR, Julian
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.