From: "Dirk Lüsebrink" Date: 2006-11-08T07:07:36+09:00 Subject: Re: webrick-webdav(gem) served files are mounted only read-o Gabriele Marrone wrote: > Il giorno 03/nov/06, alle ore 10:11, Dirk Luesebrink ha scritto: > >> server.mount("/webdav", WEBrick::HTTPServlet::WebDAVHandler, >> this be a mac or a webrick-webdav problem? any tips welcomed, ... > I had the same problem as yours, but I couldn't find enough > documentation anywhere (about webrick-webdav or about the version > required by OS X) so I started reading webrick-webdav sources and > comparing the traffic dump with an apache webdav module and I found > out this version issue. yes, i've also found the res["DAV"] = "1,2" but uncommenting it did not work for me at first. but than i found the HTTPS stuff on your page(http://gmarrone.objectblues.net/cgi-bin/wiki/WebDAV_-_Linux_server%2c_Mac_OS_X_client) and i could get it to work. The strange errors you got, i had also, "(Error code, -50)". I guess this is because of the missing UN/LOCK implementation and so i tried putting an empty LOCK method in there: class WebDAVHandlerVersion2 def do_LOCK req, res puts "LOCK request: #{req}" end end and this got me rid of the the 'strange' errors. But now, what does it mean? What is UN/LOCK actually supposed to do? (UNLOCK does not seem to be called at all?) Yeah, i could start looking it up in the RFC, but i'm sick an tired of the Webdav promise. All could have been so nice, when apple/microsoft/apache/etc would just have had implemented what is written in the RFCs an i would not need to bother, sigh. So, now i have a kind of working(kind of) webdav-webrick/version 2/read&write version server. lets see what happens next when putting it into production use, hehe thanx dirk -- Posted via http://www.ruby-forum.com/.