W3C home > Mailing lists > Public > w3c-dist-auth@w3.org > July to September 2008

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

From: Julian Reschke <julian.reschke@gmx.de>
Date: Tue, 05 Aug 2008 08:21:12 +0200
Message-ID: <4897F158.5000107@gmx.de>
To: Till Niese <t.niese@gmail.com>
CC: w3c-dist-auth@w3.org

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
Received on Tuesday, 5 August 2008 06:21:56 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 2 June 2009 18:44:16 GMT