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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 01:20:51
Script start
Timing: Jan 19 2025 01:20:51
Module start 'layout'
Timing: Jan 19 2025 01:20:51
Module start 'content'
Timing: Jan 19 2025 01:20:52
Module end 'content'
Timing: Jan 19 2025 01:20:52
Script end

Main resources:

Total runtime0.9128 sec
Peak memory usage4,096.0000 KB
Database Queries66

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0074 592.4375152.6250
Module start 'layout' 0.00750.0029 745.062539.4453
Module start 'content' 0.01040.9010 784.5078609.8359
Module end 'content' 0.91140.0014 1,394.343820.1563
Script end 0.9128  1,414.5000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.4191160.0002
Check MTime0.00170.1901160.0001
Mysql Total
Database connection0.00110.119210.0011
Mysqli_queries0.818489.6578660.0124
Looping result0.00070.0728640.0000
Template Total0.876396.020.4382
Template load0.00210.234620.0011
Template processing0.874295.763520.4371
Template load and register function0.00030.027710.0003
states
state_id_array0.00230.253210.0023
state_identifier_array0.00140.156720.0007
Override
Cache load0.00220.24552050.0000
Sytem overhead
Fetch class attribute can translate value0.00050.053820.0002
Fetch class attribute name0.00150.164270.0002
XML
Image XML parsing0.00060.070920.0003
class_abstraction
Instantiating content class attribute0.00000.002480.0000
General
dbfile0.00080.0846160.0000
String conversion0.00000.001240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
20content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
16content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 46
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs