Discussion:
Finder mounts my WebDav share always readonly
Dominik Westner
2002-05-31 11:41:01 UTC
Permalink
Hi all,

this is driving me crazy.
I have an apache 2.0.36 running on MOSX. I have enabled webdav and the
following entry within a virtual host in my httpd.conf:

DocumentRoot "/Work/WebServer/Documents/Robots"

DavLockDB /Work/WebServer/DavLock/DavLock
DAVMinTimeout 600
DAVDepthInfinity On
<Location />
Options Indexes
Dav On

AuthType Basic
AuthName "Robots area - stay back"
AuthUserFile conf/user.passwd
AuthGroupFile conf/group

<Limit PUT POST DELETE PROPFIND PROPPATCH MKCOL COPY MOVE LOCK
UNLOCK>
Require group robots
</Limit>
</Location>

The server is running as user www and /Work/WebServer/Documents/Robots
is read and writeable by www.
It works perfectly with a dav client like SkunkDAV. I can read, write,
delete documents on the server.

HOWEVER when I try to mount the webdav share with the finder it will
ALWAYS mount it read-only. I have no idea why (even if I try to mount it
in the terminal with mount_webdav -o rw <url> <mount point>)

Here is what mount is giving me:
[icebox:/tmp] westner% mount
www.myserver.com/ on /Volumes/www.myserver.com (nodev, noexec, nosuid,
read-only, mounted by westner)

Does anybody know why this would happen?

Thanks

Dominik
Dominik Westner
2002-05-31 15:42:52 UTC
Permalink
Still finding out what the problem is why Mac OS X only mounts webdav
filesystems read only. It seems that the Mac OS X implementation of the
web dav client thinks that the apache 2 webdav implementation is only
class 1 and not class 2.
As a result it will only mount a webdav filesystem read only. As some
other people already reported on this list.
I don't know much about the web dav internals, but an email from an
Apple employee to another lists seems to suggest so:



The Mac OS X WebDAV file system does use the LOCK method.

DAV class 1 WebDAV servers are mounted as read-only volumes because the
LOCK method isn't required for class 1 resources.

DAV class 2 WebDAV servers are mounted as read-write volumes. On these
servers, when a file (resource) is opened with write access, the WebDAV
file system uses the LOCK method to acquire a lock on the file being
opened with a timeout of 10 minutes. If the lock cannot be acquired,
then the file cannot be opened with write access. The lock is refreshed
every 5 minutes until the file is closed. When the file is closed, the
UNLOCK method is used to unlock the file. The WebDAV file system does
not acquire a lock on files opened with read-only access.

Jim Luther
Apple Computer, Inc.


If I look what responses the itools server (apache 1.3) provides in
contrary to the apache 2.0.26, there is essentially just 1 difference:
the old mod_dav has one DAV: header while the apache 2 implementation
has 2 DAV headers.

I think this is where Mac OS X gets confused. Is this a bug in the
client or is the server response not RFC compliant?

========= Inbound Message =========
HTTP/1.1 200 OK
Date: Fri, 31 May 2002 17:23:58 GMT
Content-Length: 0
Content-Type: text/plain
Connection: close
Server: Apache/1.3.14 (Unix) DAV/1.0.2
MS-Author-Via: DAV
Allow: OPTIONS, GET, HEAD, POST, DELETE, TRACE, PROPFIND, PROPPATCH,
COPY, MOVE,
LOCK, UNLOCK
DAV: 1,2,<http://apache.org/dav/propset/fs/1>

========= Inbound Message =========
HTTP/1.1 200 OK
Date: Fri, 31 May 2002 16:55:35 GMT
Server: Apache/2.0.36 (Unix) DAV/2
DAV: 1,2
DAV: <http://apache.org/dav/propset/fs/1>
MS-Author-Via: DAV
Allow:
OPTIONS,GET,HEAD,POST,DELETE,TRACE,PROPFIND,PROPPATCH,COPY,MOVE,LOCK,UNLOCK
Content-Length: 0
Content-Type: text/plain; charset=ISO-8859-1


Dominik
Post by Dominik Westner
Hi all,
this is driving me crazy.
I have an apache 2.0.36 running on MOSX. I have enabled webdav and the
DocumentRoot "/Work/WebServer/Documents/Robots"
DavLockDB /Work/WebServer/DavLock/DavLock
DAVMinTimeout 600
DAVDepthInfinity On
<Location />
Options Indexes
Dav On
AuthType Basic
AuthName "Robots area - stay back"
AuthUserFile conf/user.passwd
AuthGroupFile conf/group
<Limit PUT POST DELETE PROPFIND PROPPATCH MKCOL COPY MOVE LOCK
UNLOCK>
Require group robots
</Limit>
</Location>
The server is running as user www and /Work/WebServer/Documents/Robots
is read and writeable by www.
It works perfectly with a dav client like SkunkDAV. I can read, write,
delete documents on the server.
HOWEVER when I try to mount the webdav share with the finder it will
ALWAYS mount it read-only. I have no idea why (even if I try to mount
it in the terminal with mount_webdav -o rw <url> <mount point>)
[icebox:/tmp] westner% mount
www.myserver.com/ on /Volumes/www.myserver.com (nodev, noexec, nosuid,
read-only, mounted by westner)
Does anybody know why this would happen?
Thanks
Dominik
_______________________________________________
MacOSX-admin mailing list
http://www.omnigroup.com/mailman/listinfo/macosx-admin
Loading...