[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Locking non-existent paths. Time to discuss.

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2005-03-18 19:22:56 CET

On Mar 17, 2005, at 2:58 AM, Julian Reschke wrote:
>
> What *is* needed is the ability to LOCK an unmapped resource. However,
> it's completely sufficient to implement this by creating an empty
> placew holder resource.
>
> Thus,
>
> LOCK unmapped
>
> can be exactly the same as
>
> PUT unmapped
> Content-Length: 0
>
> followed by
>
> LOCK unmapped
>

Julian: if we implement the above, the I understand that this sequence
will work correctly (it's what MS office does):

      LOCK url
                  --> nonexistent url means creation of locked, 0-byte
file.
      PUT url
                  --> 0-byte file is overwritten with real content

But what about a client which runs

      LOCK url
      MKCOL url

?

Won't the MKCOL fail if there's a 0-byte file in the way? Or what if
the url is the target of a collection COPY/MOVE ?

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Mar 18 19:27:37 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.