cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <stef...@apache.org>
Subject Fooling around with cocoon davmap
Date Fri, 31 Oct 2003 23:11:39 GMT
In my doco wandering, I tried to mount the cocoon DAV repository (found  
in the 'davmap' directory of the webdav block) under macosx as a disk,  
but fails. I tried with mod_dav on httpd 2.0.47 and it works.

Further inspection (with the good old tcpflow) indicates that the  
cocoon OPTION handshake:

127.000.000.001.53028-127.000.000.001.08888: OPTIONS  
/samples/webdav/davmap/repo/ HTTP/1.1
User-Agent: WebDAVFS/1.2.3 (01238000) Darwin/6.8 (Power Macintosh)
Accept: */*
Host: localhost:8888
Content-Length: 0

127.000.000.001.08888-127.000.000.001.53028: HTTP/1.1 200 OK
Date: Fri, 31 Oct 2003 22:49:51 GMT
Server: Jetty/4.2.9 (Mac OS X/10.2.8 ppc java/1.4.1_01)
X-Cocoon-Version: 2.1.3-dev
Allow: OPTIONS, GET, HEAD, POST, DELETE,TRACE, PROPFIND, PROPPATCH,  
COPY, MOVE
DAV: DAV:1
Content-Type: text/xml
Content-Length: 46

<?xml version="1.0" encoding="UTF-8"?>
<page/>

Is not that palatable by WebDAVFS (the mach-O DAV client) while

127.000.000.001.53029-127.000.000.001.00080: OPTIONS / HTTP/1.1
User-Agent: WebDAVFS/1.2.3 (01238000) Darwin/6.8 (Power Macintosh)
Accept: */*
Host: localhost:80
Content-Length: 0


127.000.000.001.00080-127.000.000.001.53029: HTTP/1.1 200 OK
Date: Fri, 31 Oct 2003 22:50:13 GMT
Server: Apache/2.0.47 (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,UNL 
OCK
Content-Length: 0
Content-Type: httpd/unix-directory

is much more digestible and results in the disk being mounted.

Now, the first thing to ask is:

1) is DAV: DAV:1 correct? I would expect "DAV: 1" to be the correct  
header
2) is our response correct? I think that, from a DAV perspective, "/"  
is not a page but rather a folder.... even if, to be honest,  
httpd/unix-directory really sucks as a content type, but anyway.

Expect more feedback on this since I'm going to investigate more and  
more webdav capabilities as I prepare to attack doco.

--
Stefano.


Mime
View raw message