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

eZ debug

Timing: Jan 18 2025 22:40:47
Script start
Timing: Jan 18 2025 22:40:47
Module start 'content'
Timing: Jan 18 2025 22:40:48
Module end 'content'
Timing: Jan 18 2025 22:40:48
Script end

Main resources:

Total runtime1.0682 sec
Peak memory usage4,096.0000 KB
Database Queries203

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0078 591.8203180.8281
Module start 'content' 0.00780.9230 772.6484614.9141
Module end 'content' 0.93080.1374 1,387.5625341.3984
Script end 1.0681  1,728.9609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00460.4267210.0002
Check MTime0.00160.1526210.0001
Mysql Total
Database connection0.00080.070710.0008
Mysqli_queries0.958089.68732030.0047
Looping result0.00190.17982010.0000
Template Total0.960589.920.4803
Template load0.00250.235820.0013
Template processing0.958089.685120.4790
Template load and register function0.00020.014310.0002
states
state_id_array0.00100.097810.0010
state_identifier_array0.00130.125520.0007
Override
Cache load0.00240.22092050.0000
Sytem overhead
Fetch class attribute can translate value0.00110.105830.0004
Fetch class attribute name0.00090.087470.0001
XML
Image XML parsing0.00140.126530.0005
class_abstraction
Instantiating content class attribute0.00000.001780.0000
General
dbfile0.00480.4478270.0002
String conversion0.00000.000830.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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