Hello Slide-Users,
I am trying to get the current Slide 2 from CVS to run. Right now I am
stuck with this problem:
No collection displays as a collection when talking to Slide using
WebDAV: For instance in Web-Folders all directories show up as files,
not folders. They can be used as folders using SlideClient though.
This kind of behavior happens using JDBCStore as well as Memorystore.
To illustrate the problem, I executeted these commands with the
Slide-Client:
[LOCALHOST] /slide/ $ mkcol directory
Making '/slide/directory' collection: succeeded.
[LOCALHOST] /slide/ $ ls directory
[LOCALHOST] /slide/ $
These two requests create a new directory and call a propfind on it.
Looks fine so far, but the directory shows up as file in MS-Webfolder,
-> Let's look what happend over WebDAV (indentation changed):
-----------------MKCOL Request------------------------------------
MKCOL /slide/directory HTTP/1.1
Content-Length: 0
Authorization: Basic cm9vdDpyb290
Cookie: $Version=1;JSESSIONID=F427F2454F888F3BA5B9F6D68B024E0E;
$Path=/slide; $Domain=localhost
Host: localhost:8090
User-Agent: Jakarta HTTP Client/1.0
-----------------MKCOL Response------------------------------------
HTTP/1.1 201 Created
Content-Type: text/html
Connection: close
Date: Wed, 05 Jun 2002 15:18:57 GMT
Pragma: No-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Server: Apache Tomcat/4.0.3 (HTTP/1.1 Connector)
Cache-Control: no-cache
----------------PROPFIND Request 1---------------------------------
PROPFIND /slide/directory/ HTTP/1.1
Content-Length: 207
Authorization: Basic cm9vdDpyb290
Content-Type: text/xml; charset=utf-8
Cookie: $Version=1;JSESSIONID=F427F2454F888F3BA5B9F6D68B024E0E;
$Path=/slide; $Domain=localhost
Host: localhost:8090
Depth: 0
User-Agent: Jakarta HTTP Client/1.0
<?xml version="1.0" encoding="utf-8"?>
<D:propfind xmlns:D="DAV:">
<D:prop>
<D:displayname/>
<D:getcontentlength/>
<D:getcontenttype/>
<D:resourcetype/>
<D:getlastmodified/>
<D:lockdiscovery/>
</D:prop>
</D:propfind>
----------------PROPFIND Response 1---------------------------------
HTTP/1.1 207 Multi-Status
Content-Type: text/xml; charset=UTF-8
Connection: close
Date: Wed, 05 Jun 2002 15:19:57 GMT
Pragma: No-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Server: Apache Tomcat/4.0.3 (HTTP/1.1 Connector)
Cache-Control: no-cache
<?xml version="1.0" encoding="UTF-8"?>
<D:multistatus xmlns:D="DAV:">
<D:response>
<D:href>/slide/directory</D:href>
<D:propstat>
<D:prop>
<D:displayname>directory</D:displayname>
<D:getcontentlength>0</D:getcontentlength>
<D:resourcetype />
<D:getlastmodified>Wed, 05 Jun 2002
15:18:57 GMT</D:getlastmodified>
</D:prop>
<D:status>HTTP/1.1 200 OK</D:status>
</D:propstat>
<D:propstat>
<D:prop>
<D:getcontenttype />
</D:prop>
<D:status>HTTP/1.1 404 Not Found</D:status>
</D:propstat>
</D:response>
</D:multistatus>
----------------PROPFIND Request 2---------------------------------
PROPFIND /slide/directory/ HTTP/1.1
Content-Length: 112
Authorization: Basic cm9vdDpyb290
Content-Type: text/xml; charset=utf-8
Cookie: $Version=1;JSESSIONID=F427F2454F888F3BA5B9F6D68B024E0E;
$Path=/slide; $Domain=localhost
Host: localhost:8090
Depth: 1
User-Agent: Jakarta HTTP Client/1.0
<?xml version="1.0" encoding="utf-8" ?>
<D:propfind xmlns:D="DAV:">
<D:prop>
<D:displayname/>
</D:prop>
</D:propfind>
----------------PROPFIND Response 2---------------------------------
HTTP/1.1 207 Multi-Status
Content-Type: text/xml; charset=UTF-8
Connection: close
Date: Wed, 05 Jun 2002 15:19:57 GMT
Pragma: No-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Server: Apache Tomcat/4.0.3 (HTTP/1.1 Connector)
Cache-Control: no-cache
<?xml version="1.0" encoding="UTF-8"?>
<D:multistatus xmlns:D="DAV:">
<D:response>
<D:href>/slide/directory</D:href>
<D:propstat>
<D:prop>
<D:displayname>directory</D:displayname>
</D:prop>
<D:status>HTTP/1.1 200 OK</D:status>
</D:propstat>
</D:response>
</D:multistatus>
------------------------------------------------------------------------
IMHO slide is telling in Response 1, that directory has no resourcetype:
...
<D:resourcetype />
...
, but it should respond something in the line of:
<resourcetype><collection/></resourcetype>
(that's TomCats DAV response in the same testcase)
It seems, that Slide does know, that directory is a collection, I can
put files into it, Slide-Servlet displays it as a directory and in
slidestructure I found:
INSERT INTO PROPERTY VALUES
('/directory','1.0','resourcetype','<collection/>','DAV:','',1)
it just doesn't seem to tell over DAV.
Thanks for your help, and don't tell anyone my password ;-)
Raimo.
--
Dipl.-Inform. Raimo Ihle Tel: +49 (0)30 39 40 54 25
bit~side GmbH Fax: +49 (0)30 39 40 54 50
Salzufer 14a Aufgang D Email: [EMAIL PROTECTED]
10587 Berlin WWW: <http://www.bit-side.com>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>