You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by Jiantao Pan <ji...@labbook.com> on 2002/06/12 22:07:12 UTC

collection problem with lastest build

I get the latest code from cvs and build slide server from it. When testing it, I found the following problem:
Server runs fine. One can map a shared web folder, say "http://localhost:8080/slide/files" through windows. It shows a file called "files" inside the collection. Then you can mkcol say "test", Open it then go back to /slide/files. The folder showed up as a file instead.
I am running on tomcat4.0.1 using jre1.3.1_01 under windows 2000.  
This happens for MemoryDescriptorsStore and JDBCDescriptorsStore. There is no server error what so ever. 
Help is appreciated.
Jiantao

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: collection problem with lastest build

Posted by Raimo Ihle <r....@bit-side.com>.
Hi Jiantao,

this seems to be the same prob, I reported on Slide-User last week.
Short version: Slide reports: 
<D:resourcetype /> when calling propfind on collections, which just 
doesn't seem right.

Below is my original mail regarding this problem, I haven't found a
solution or cause yet.

Good luck,
Raimo.

======================================================================

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.


Jiantao Pan wrote:
> 
> I get the latest code from cvs and build slide server from it. When testing it, I found the following problem:
> Server runs fine. One can map a shared web folder, say "http://localhost:8080/slide/files" through windows. It shows a file called "files" inside the collection. Then you can mkcol say "test", Open it then go back to /slide/files. The folder showed up as a file instead.
> I am running on tomcat4.0.1 using jre1.3.1_01 under windows 2000.
> This happens for MemoryDescriptorsStore and JDBCDescriptorsStore. There is no server error what so ever.
> Help is appreciated.
> Jiantao
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>

-- 
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: r.ihle@bit-side.com
10587 Berlin                           WWW: <http://www.bit-side.com>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>