[jcifs] Property Inconsistencies (Davenport)

Mike McDonald Mike.McDonald at anywaregroup.com
Mon Feb 9 14:51:44 GMT 2004


Hi everyone.  My apologies, as I'm not entirely sure this question belongs
here.

 

I am testing Davenport as a file sharing solution.  I have one problem that
is giving me a particularly hard time, and I'm just curious about the
difference in how jCIFS handles shares versus directories.  The reason for
my question is that when I attempt to open a share (TYPE_SHARE) in Web
Folder view, I am unsuccessful.  If I attempt to open the same physical
directory (TYPE_FILESYSTEM) as a Web Folder it succeeds.  I've outlined a
couple interesting items below (from the PROPFIND response).  Please note
the following differences:

 

1.	In the href element, the href has a trailing '/' when accessing via
TYPE_FILESYSTEM.  This '/' is appended by davenport.  Does it have any
significance to jCIFS?
2.	The getlastmodified and creationdate elements are different
depending on how the request was made (SmbFile.lastModified()).  (No time
has elapsed?)
3.	The getcontentlength element is different depending on how the
request was made (SmbFile.length()).

 

Can anyone hazard a guess as to why these might differ depending on if the
resource is accessed as a share versus as a filesystem?

 

Environment:

Davenport 0.9.6

jCIFS 0.7.19

 

 

SMB servers:

SAMBA 3.0.0 (RedHat 9)

Windows XP Professional

Windows 2000 Professional

 

Thanks,

Mike

 

 

 

Successful PROPFIND (e.g. TYPE_FILESYSTEM request)

 

HTTP/1.1 207 Multi Status

Date: Mon, 09 Feb 2004 09:35:27 GMT

Server: Jetty/4.2.14 (Windows 2000/5.0 x86 java/1.4.2_03)

Content-Length: 825

Content-Type: text/xml; charset="utf-8"

 

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

    <multistatus xmlns="DAV:"
xmlns:w="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/">

    <response>

        <href>http://host/davenport/server/share/subdirectory/</href>

        <propstat>

            <status>HTTP/1.1 200 MultiStatus</status>

            <prop>

                <getcontenttype>httpd/unix-directory</getcontenttype>

                <ishidden w:dt="boolean">0</ishidden>

                <iscollection w:dt="boolean">1</iscollection>

                <resourcetype><collection/></resourcetype>

                <getlastmodified w:dt="dateTime.rfc1123">Thu, 13 Nov 2003
20:03:42 GMT</getlastmodified>

                <displayname>shares/</displayname>

                <creationdate
w:dt="dateTime.tz">2003-11-13T20:03:42.000Z</creationdate>

                <isreadonly w:dt="boolean">0</isreadonly>

                <getcontentlength w:dt="int">0</getcontentlength>

                <getetag>"4123feb6ba1569353e25c9c2b68c574d"</getetag>

            </prop>

        </propstat>

    </response>

</multistatus>

 

 

Failed PROPFIND Response (e.g. TYPE_SHARE request)

 

HTTP/1.1 207 Multi Status

Date: Mon, 09 Feb 2004 09:33:13 GMT

Server: Jetty/4.2.14 (Windows 2000/5.0 x86 java/1.4.2_03)

Content-Length: 826

Content-Type: text/xml; charset="utf-8"

 

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

    <multistatus xmlns="DAV:"
xmlns:w="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/">

    <response>

        <href>http://host/davenport/server/share</href>

        <propstat>

            <status>HTTP/1.1 200 MultiStatus</status>

            <prop>

                <getcontenttype>httpd/unix-directory</getcontenttype>

                <ishidden w:dt="boolean">0</ishidden>

                <iscollection w:dt="boolean">1</iscollection>

                <resourcetype><collection/></resourcetype>

                <getlastmodified w:dt="dateTime.rfc1123">Thu, 01 Jan 1970
00:00:00 GMT</getlastmodified>

                <displayname>shares/</displayname>

                <creationdate
w:dt="dateTime.tz">1970-01-01T00:00:00.000Z</creationdate>

                <isreadonly w:dt="boolean">1</isreadonly>

                <getcontentlength w:dt="int">98626961408</getcontentlength>

                <getetag>"195a6053b85db823650312a6f1705da6"</getetag>

            </prop>

        </propstat>

    </response>

</multistatus>

-------------- next part --------------
HTML attachment scrubbed and removed


More information about the jcifs mailing list