Forums / Setup & design / Cannot read from a mount via davfs

Cannot read from a mount via davfs

Author Message

Guy Deleeuw

Monday 10 March 2008 9:17:10 am

Hello

I cannot mount a ez resource with dafs :
mount -t davfs http://webdav.eurofer.be /mnt/webdav
Please enter the username to authenticate with server
http://webdav.eurofer.be or hit enter for none.
Username: admin
Please enter the password to authenticate user admin with server
http://webdav.eurofer.be or hit enter for none.
Password:

Ok mounted

ll /mnt/webdav/
total 6
drwxr-xr-x 5 root root 100 2008-03-05 17:31 .
drwxr-xr-x 11 root root 4096 2008-03-05 16:28 ..
drwx------ 2 root root 36 2008-03-05 16:29 lost+found
drwxr-xr-x 4 root root 68 2008-03-10 12:38 slash-eng
drwxr-xr-x 4 root root 68 2008-03-07 10:39 slash-ezwebin_site_admin

strange this "slash-"

ll /mnt/webdav/slash-eng/Content/
total 1
drwxr-xr-x 2 root root 36 2008-03-06 16:16 .
drwxr-xr-x 4 root root 68 2008-03-10 12:38 ..

No entries appear.
With cadaver and konqueror all work fine.
Any idea ?

Regards

Guy

Gaetano Giunta

Monday 10 March 2008 1:31:05 pm

Can you trace the http communication between client and server and provide a dump?
Ps: also, which version of eZ are you using?

Principal Consultant International Business
Member of the Community Project Board

Guy Deleeuw

Monday 10 March 2008 2:54:00 pm

Hello :

ez version 4.0

davfs version :
[root@pcGD-c:~] $ apt-cache showpkg davfs2
Package: davfs2
Versions:
1.2.1-3 (/var/lib/apt/lists/be.archive.ubuntu.com_ubuntu_dists_gutsy_universe_binary-amd64_Packages) (/var/lib/dpkg/status)
Description Language:
File: /var/lib/apt/lists/be.archive.ubuntu.com_ubuntu_dists_gutsy_universe_binary-amd64_Packages
MD5: 8210fced3b9d728dbbe00c64e0252851

Reverse Depends:
Dependencies:
1.2.1-3 - libc6 (2 2.5-5) libneon26 (2 0.26.3) debconf (18 0.5) debconf-2.0 (0 (null)) adduser (0 (null))
Provides:
1.2.1-3 -
Reverse Provides:
[root@pcGD-c:~] $

whireshark trace :
OPTIONS / HTTP/1.1
Host: webdav.eurofer.be
User-Agent: davfs2/1.2.1 neon/0.26.3
Keep-Alive:
Connection: TE, Keep-Alive
TE: trailers

HTTP/1.1 200 OK
Date: Mon, 10 Mar 2008 21:51:45 GMT
Server: Apache/2.2.3 (Debian) PHP/5.2.0-8+etch10 mod_ssl/2.2.3 OpenSSL/0.9.8c
X-Powered-By: PHP/5.2.0-8+etch10
WebDAV-Powered-By: eZ Publish
Content-Length: 0
MS-Author-Via: DAV
Allow: OPTIONS, PROPFIND, HEAD, GET, PUT, MKCOL, MOVE
DAV: 1,2,<http://apache.org/dav/propset/fs/1>
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/plain; charset=iso-8859-1

PROPFIND / HTTP/1.1
Host: webdav.eurofer.be
User-Agent: davfs2/1.2.1 neon/0.26.3
Connection: TE
TE: trailers
Depth: 1
Content-Length: 314
Content-Type: application/xml

<?xml version="1.0" encoding="utf-8"?>
<propfind xmlns="DAV:"><prop>
<displayname xmlns="DAV:"/>
<getetag xmlns="DAV:"/>
<getcontentlength xmlns="DAV:"/>
<creationdate xmlns="DAV:"/>
<getlastmodified xmlns="DAV:"/>
<resourcetype xmlns="DAV:"/>
<executable xmlns="http://apache.org/dav/props/"/>
</prop></propfind>
HTTP/1.1 207 Multi-Status
Date: Mon, 10 Mar 2008 21:51:46 GMT
Server: Apache/2.2.3 (Debian) PHP/5.2.0-8+etch10 mod_ssl/2.2.3 OpenSSL/0.9.8c
X-Powered-By: PHP/5.2.0-8+etch10
WebDAV-Powered-By: eZ Publish
Content-Length: 1892
Content-Type: text/xml

<?xml version="1.0" encoding="utf-8"?>
<D:multistatus xmlns:D="DAV:">
<D:response>
<D:href>/</D:href>
<D:propstat>
<D:prop>
<D:displayname>/</D:displayname>
<D:getcontentlength>0</D:getcontentlength>
<D:creationdate>2008-03-05T16:31:27Z</D:creationdate>
<D:getlastmodified>Wed, 05 Mar 2008 16:31:27</D:getlastmodified>
<D:resourcetype>
<D:collection />
</D:resourcetype>
<D:lockdiscovery/>
</D:prop>
<D:status>HTTP/1.1 200 OK</D:status>
</D:propstat>
<D:propstat>
<D:prop>
<D:getetag />
<D:executable />
<D:getcontenttype />
</D:prop>
<D:status>HTTP/1.1 404 Not Found</D:status>
</D:propstat>
</D:response>
<D:response>
<D:href>/eng/</D:href>
<D:propstat>
<D:prop>
<D:displayname>/eng</D:displayname>
<D:getcontentlength>0</D:getcontentlength>
<D:creationdate>2008-03-10T11:38:39Z</D:creationdate>
<D:getlastmodified>Mon, 10 Mar 2008 11:38:39</D:getlastmodified>
<D:resourcetype>
<D:collection />
</D:resourcetype>
<D:lockdiscovery/>
</D:prop>
<D:status>HTTP/1.1 200 OK</D:status>
</D:propstat>
<D:propstat>
<D:prop>
<D:getetag />
<D:executable />
<D:getcontenttype />
</D:prop>
<D:status>HTTP/1.1 404 Not Found</D:status>
</D:propstat>
</D:response>
<D:response>
<D:href>/ezwebin_site_admin/</D:href>
<D:propstat>
<D:prop>
<D:displayname>/ezwebin_site_admin</D:displayname>
<D:getcontentlength>0</D:getcontentlength>
<D:creationdate>2008-03-07T09:39:15Z</D:creationdate>
<D:getlastmodified>Fri, 07 Mar 2008 09:39:15</D:getlastmodified>
<D:resourcetype>
<D:collection />
</D:resourcetype>
<D:lockdiscovery/>
</D:prop>
<D:status>HTTP/1.1 200 OK</D:status>
</D:propstat>
<D:propstat>
<D:prop>
<D:getetag />
<D:executable />
<D:getcontenttype />
</D:prop>
<D:status>HTTP/1.1 404 Not Found</D:status>
</D:propstat>
</D:response>
</D:multistatus>
PROPFIND /eng/ HTTP/1.1
Host: webdav.eurofer.be
User-Agent: davfs2/1.2.1 neon/0.26.3
Connection: TE
TE: trailers
Depth: 1
Content-Length: 314
Content-Type: application/xml

If you need more informations don't hesitate

Regards
Guy

Gaetano Giunta

Tuesday 11 March 2008 3:24:21 am

Well, there is no "slash-" in the dav response from eZ, but the urls that are returned are "/eng" and "/ezwebin_site_admin".
Maybe davfs does not like those and gets confused?

Principal Consultant International Business
Member of the Community Project Board

Guy Deleeuw

Tuesday 11 March 2008 4:20:41 am

Hello,

Thanks for your respons

I check on the changelog of the davfs project and see :
2007-04-15 Werner Baumann (werner.baumann@onlinehome.de)
* corrected po4a.conf for partial translations
* added Spanish davfs2.conf.5 from Luciano
* webdav.c, prop_result:
replacement for / in file names depends from position
(slash-, -slash-, -slash)

what is the way to solve that ?

Regards
Guy

Guy Deleeuw

Tuesday 11 March 2008 2:39:21 pm

Hello,

Maybe that the bad result "slash-" are not the problem that block me but the problem are that I cannot browse the tree content .

Anyone have an experience with davfs ?

Regards

Guy