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

Re: mod_dav_svn MKCOL

From: Greg Stein <gstein_at_lyra.org>
Date: 2001-10-19 04:46:53 CEST

On Thu, Oct 18, 2001 at 01:58:48PM -0700, Mike Geiger wrote:
> I am having trouble invoking MKCOL on Apache 2 Win2K.
>
> I tried to make a collection using svn:
> svn import file:///apache_1.3/htdocs/newrepos c:\backup bak
>
> This worked.
>...
> When I submit a MKCOL http://localhost:8080/svn/repos/bak/newcollection

You can't do that.

> I get the standard '500' error, but the root cause is that
> "svn_fs_is_dir" quite correctly returns that 'newcollection' is not a
> dir. I've tried changing the 'DAV_RESOURCE_TYPE' but have not had any
> luck with that.

I have no idea what kind of code tweaking you're referring to here, but it
will invariably be wrong.

> The same command works as expected in mod_dav_fs and MS Webdav.

Yes, of course.

mod_dav_svn is *NOT* a general WebDAV provider. It has _just_enough_
functionality to support the SVN client, but no more. You can browse a
mod_dav_svn-based repository using a DAV client, but you cannot make any
changes (e.g. MKCOL, PUT, PROPPATCH, etc). To make a change, you must go
through a specific sequence of operations, following one of the models in
the DeltaV RFC.

Some of the DAV stuff is discussed in www/webdav-usage.html. That page is a
bit out of date, but I should be completing it next week.

> Is there a test suite for mod_dav_svn?

Not in the sense that you're thinking of. Our test suite covers SVN
operations. Not DAV operations.

Note that even the 500 that was returned when you tried the MKCOL is a
deficiency in mod_dav_svn's support as a general DAV provider. It should
have returned a 403 or a 409.

The next version of Subversion (e.g. 2.0) will be a true WebDAV provider.
For now, we use and implement just enough of the protocol to satisfy our
network needs. The parts that we *do* implement are conformant, but we don't
implement "enough" to be a general server.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:45 2006

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.