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

Re: dreamweaver + subversion + webdav

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2004-02-12 00:35:07 CET

On Wed, 2004-02-11 at 17:18, Deryl Seale wrote:
> You say that few people are using autoversioning, less still with
> mod_dav_lock -- is there a better, or more standard way to get
> subversion working with other WebDAV clients?

Subversion 1.0 is not a generic WebDAV server, nor was it ever
advertised as such. There's no other "better" way than what you're
already doing. :-)

We chose WebDAV because (1) http goes through firewalls, (2) apache is
already an excellent generic server, (3) potential for http proxies and
caching, and (4) future DAV compatibility potential.

The key in point #4 is the word "potential". Subversion 1.0 has *some*
compatibility with other DAV clients, but not complete. Appendix D in
the book talks all about that, as I'm sure you're aware. But the main
point is that we didn't choose WebDAV so that Subversion can seemlessly
interact with Dreamweaver, Adobe, MSOffice, etc. If you can make it
work, that's great, more power to ya. Otherwise, real compatibility is
a far-future feature. Autoversioning was a cute freebie I threw into
the code over an xmas holiday, just a small step on the road to real
interoperablity. That's why I mentioned that anyone using
Autoversioning is exploring 'uncharted territory'.

> LOCK /svn/repo/test.htm HTTP/1.1
> Host: 192.168.2.132
> User-Agent: Dreamweaver-WebDAV-SCM1.02
> Authorization: Basic d2ViZGF2OndlYmRhdg==
> Translate: f
> Timeout: Infinite, Second-4100000000
> Depth: 0
> Connection: Close
> Content-Type: text/xml; charset="utf-8"
> Content-Length: 218
>
> <?xml version="1.0" encoding="utf-8" ?>
> <D:lockinfo xmlns:D="DAV:">
> <D:lockscope>
> <D:exclusive/>
> </D:lockscope>
> <D:locktype><D:write/></D:locktype><D:owner><D:href>deryl@acm.org</D:
> href></D:owner></D:lockinfo>
>
> HTTP/1.1 405 Method Not Allowed
> Date: Wed, 11 Feb 2004 23:05:30 GMT
> Server: Apache/2.1.0-dev (Unix) DAV/2 SVN/0.37.0+
> Allow: GET,HEAD,POST,OPTIONS,TRACE
> Content-Length: 339
> Connection: close
> Content-Type: text/html; charset=iso-8859-1
>
> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
> <html><head>
> <title>405 Method Not Allowed</title>
> </head><body>
> <h1>Method Not Allowed</h1>
> <p>The requested method LOCK is not allowed for the URL
> /svn/repo/test.htm.</p>
> <hr />
> <address>Apache/2.1.0-dev (Unix) DAV/2 SVN/0.37.0+ Server at
> 192.168.2.132 Port 80</address>
> </body></html>

Looks like Dreamweaver is attempting to LOCK a non-existent URL. This
is a technique (described by the DAV spec) for reserving a filename
before you PUT to it. I don't think all DAV servers support this
feature, though, I don't remember. You'll have to check the spec about
"locking null resources". Anyway, it looks like mod_dav (or
mod_dav_svn) isn't supporting that sort of request. Patches are
welcome. :-)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Feb 12 00:39:40 2004

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

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