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

Re: Cleaning up XFails: locks-test.exe 9 and 10

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Mon, 07 Feb 2011 20:44:21 +0000

Paul Burba <ptburba_at_gmail.com> writes:

> Do "DAV clients sometimes LOCK non-existent paths, as a way of
> reserving names"? I'm not sure exactly what that means, does anyone
> have an inkling?

In subversion/mod_dav_svn/lock.c:append_locks the code does a PUT of a
0-byte file when an attempt is made to lock a non-existant file. You
need SVNAutoversioning enabled and you need to be using a non-Subversion
client. It is possible to trigger this using cadaver:

$ svnadmin create repo
$ ln -sf /bin/true repo/hooks/pre-lock
$ cadaver http://localhost:8888/obj/repo
dav:/obj/repo/> lock f
Locking `f': succeeded.
dav:/obj/repo/> quit
$ svnlook tree repo
/
 f

-- 
Philip
Received on 2011-02-07 21:45:04 CET

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.