You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by Brian Lee <bl...@macys.com> on 2005/02/09 22:54:00 UTC

WCK Strange Behavior

Both the reference webdav store and my custom store exhibit the same 
behavior...
I'm using Jetty 5.x on a Mac OS X.

Basically the resource properties being returned by Slide do not match 
what they are in reality.

ex. The file 'AmazonLetter.doc' is in the 'files' directory and was last 
modified on Dec 8th of 2004...

Furthermore, if I don't filter from '/files' and I start at the store 
root - I can never enter into the 'files' directory....

Request:

PROPFIND http://localhost:8080/cansas/AmazonLetter.doc HTTP/1.1
User-Agent: WebDAVFS/1.2.7 (01278000) Darwin/7.7.0 (Power Macintosh)
Accept: */*
Host: localhost:8080
Content-Type: text/xml
Depth: 0
Content-Length: 164
Authorization: Basic YnJpYW46MTIzNDU2

<?xml version="1.0" encoding="utf-8" ?>
<D:propfind xmlns:D="DAV:">
<D:prop>
<D:getlastmodified/>
<D:getcontentlength/>
<D:resourcetype/>
</D:prop>
</D:propfind>

Response:

HTTP/1.1 207 Multi Status
Date: Wed, 09 Feb 2005 21:32:20 GMT
Server: Jetty/5.1.1 (Mac OS X/10.3.7 ppc java/1.4.2_05
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Set-Cookie: JSESSIONID=8sbah8bkmts8i;path=/cansas
Content-Type: text/xml; charset="UTF-8"
Transfer-Encoding: chunked

<?xml version="1.0" encoding="UTF-8"?>
<D:multistatus xmlns:D="DAV:">
    <D:response>
        <D:href>/cansas/AmazonLetter.doc</D:href>
        <D:propstat>
            <D:prop>
                <D:getlastmodified>Wed, 09 Feb 2005 18:34:20 
GMT</D:getlastmodified>
                <D:resourcetype>
                    <D:collection />
                </D:resourcetype>
            </D:prop>
            <D:status>HTTP/1.1 200 OK</D:status>
        </D:propstat>
        <D:propstat>
            <D:prop>
                <D:getcontentlength />
            </D:prop>
            <D:status>HTTP/1.1 404 Not Found</D:status>
        </D:propstat>
    </D:response>
</D:multistatus>

Log of my store:

"09 Feb 2005 13:32:20 - WebDAV store - INFO - objectExists(String uri) 
uri [/files/AmazonLetter.doc] root [/Applications/jettyplus/store]
09 Feb 2005 13:32:20 - WebDAV store - INFO - file.exists() [true]
09 Feb 2005 13:32:20 - WebDAV store - INFO - objectExists(String uri) 
uri [/files/AmazonLetter.doc] root [/Applications/jettyplus/store]
09 Feb 2005 13:32:20 - WebDAV store - INFO - file.exists() [true]
09 Feb 2005 13:32:20 - WebDAV store - INFO - objectExists(String uri) 
uri [/files/AmazonLetter.doc] root [/Applications/jettyplus/store]
09 Feb 2005 13:32:20 - WebDAV store - INFO - file.exists() [true]
09 Feb 2005 13:32:20 - WebDAV store - INFO - isFolder(String uri) uri 
[/files/AmazonLetter.doc] root [/Applications/jettyplus/store]
09 Feb 2005 13:32:20 - WebDAV store - INFO - file.isDirectory() [false]
09 Feb 2005 13:32:20 - WebDAV store - INFO - getResourceLength(String 
uri) uri [/files/AmazonLetter.doc] root [/Applications/jettyplus/store]
09 Feb 2005 13:32:20 - WebDAV store - INFO - file.length() [26624]
09 Feb 2005 13:32:20 - WebDAV store - INFO - getCreationDate(String uri) 
uri [/files/AmazonLetter.doc] root [/Applications/jettyplus/store]
09 Feb 2005 13:32:20 - WebDAV store - INFO - Date(file.lastModified()) 
[Wed Dec 08 10:32:16 PST 2004]
09 Feb 2005 13:32:20 - WebDAV store - INFO - getLastModified(String uri) 
uri [/files/AmazonLetter.doc] root [/Applications/jettyplus/store]
09 Feb 2005 13:32:20 - WebDAV store - INFO - Date(file.lastModified()) 
[Wed Dec 08 10:32:16 PST 2004]"

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org