Forums / Install & configuration / Webdav configuration problem

Webdav configuration problem

Author Message

Patrice Fortin

Sunday 04 March 2007 1:26:51 pm

Hi all,

I am having some troubles configuring webdav on a production server. It worked well in a testing environment, and I am having the same configuration of ezpublish, so it may be a server problem.

in override/webdav.ini.append.php

[GeneralSettings]
EnableWebDAV=true
Logging=enabled

In my httpd.conf (in ezpublish virtual server section)

RewriteEngine On
RewriteRule . /webdav.php

No matter which url I use in konqueror (valid or not), I get the following error:
An error occurred while loading webdav://example.com/fsr02/Content/visiteurs:
The file or folder webdav://example.com/fsr02/Content/visiteurs does not exist.

If I type webdav://example.com/fsr02/, I am asked for a username and password, but I get the same error message once logged.

In cadaver, I get this error:
Could not access /fsr02/ (not WebDAV-enabled?):
207 Multi-Status

I did some debugging and found out that in file ezwebdavserver.php, function outputSendDataToClient, $output variable isn't correctly initialized ($output['data'] === false). I guess this is linked to the issue.

I found this: http://issues.ez.no/5640
Which may be related, but I'm really not sure.

Does someone have hints to help me ?

Thanks

Ɓukasz Serwatka

Sunday 04 March 2007 10:23:45 pm

Hi Patrice,

Detailed infromation how to setup webdav you can find in on-line documentation:
http://ez.no/doc/ez_publish/technical_manual/3_8/features/webdav/setting_it_up

What version of eZ publish and Konqueror do you use?

eZ Publish 3.9.0 WevDAV with Konqueror 3.5.x works fine with setup mention in documentation.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Patrice Fortin

Monday 05 March 2007 6:34:55 am

Hi Lukasz,

I'm using ez 3.9.0, konqueror 3.5.2

I followed the guide you pointed me. Here's my virtual host for webdav:

<Virtualhost *:80>
        <Directory /path/to/ezpublish-3.9.0>
                Options FollowSymLinks Indexes ExecCGI
                AllowOverride None
        </Directory>
        DocumentRoot /path/to/ezpublish-3.9.0
        RewriteEngine On
        RewriteRule . /webdav.php
        ServerAdmin admin@example.com
        ServerName webdav.example.com
        CustomLog "/home/webadmin/logs/webdav_access_log" "combined"
        ErrorLog "/home/webadmin/logs/webdav_error_log"
</VirtualHost>

Server asks for a username once, then nothing change. Here is the virtual server access log

x.x.x.x - - [05/Mar/2007:09:16:45 -0500] "PROPFIND /fsr02/ HTTP/1.1" 401 - "-" "Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.2 (like Gecko) Kubuntu 6.06 Dapper"
x.x.x.x - - [05/Mar/2007:09:16:54 -0500] "PROPFIND /fsr02/ HTTP/1.1" 404 - "-" "Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.2 (like Gecko) Kubuntu 6.06 Dapper"
x.x.x.x - - [05/Mar/2007:09:17:17 -0500] "PROPFIND /fsr02/Content HTTP/1.1" 404 - "-" "Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.2 (like Gecko) Kubuntu 6.06 Dapper"

Nothing in error log

webdav.log has

2007-03-05 09:16:46 : ========================================
2007-03-05 09:16:46 : Requested URI is: /fsr02/ [webdav.php]
2007-03-05 09:16:46 : start path: /fsr02/ [CS:currentSitePath]
2007-03-05 09:16:46 : indexdir: /fsr02/ [CS:currentSitePath]
2007-03-05 09:16:46 : site fsr02: /fsr02/ [CS:currentSitePath]
2007-03-05 09:16:54 : ========================================
2007-03-05 09:16:54 : Requested URI is: /fsr02/ [webdav.php]
2007-03-05 09:16:54 : start path: /fsr02/ [CS:currentSitePath]
2007-03-05 09:16:54 : indexdir: /fsr02/ [CS:currentSitePath]
2007-03-05 09:16:54 : site fsr02: /fsr02/ [CS:currentSitePath]

Any idea ?

Thanks
Patrice

Xavier Dutoit

Monday 05 March 2007 8:56:12 am

Well, the first "page" (before authentication) is supposed to offer you all the siteaccess you have on your config.

Is it the case on your test ?

Otherwise, have a look at the log into your var/siteaccess folder

X+

http://www.sydesy.com

Patrice Fortin

Monday 05 March 2007 10:17:02 am

Hi Xavier,

Yes, in my test environment, I see siteaccess without having to enter a username/password. But not on prod, always the
The file or folder webdav://example.com/ does not exist.

And nothing in siteaccess log, or error/warning general logs..

Patrice Fortin

Wednesday 07 March 2007 1:31:42 pm

I found out something:

in ezwebdavserver.php, function processClientRequest(), $_SERVER["REQUEST_METHOD"] is set to GET (I can see it in webdav.log), even if in apache log I get something like

x.x.x.x - - [07/Mar/2007:16:26:31 -0500] "PROPFIND / HTTP/1.1" 207 7729 "-" "Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.2 (like Gecko) Kubuntu 6.06 Dapper"

So I hard coded in this function

$_SERVER["REQUEST_METHOD"] = "PROPFIND";

Surprise: I get the list of siteaccesses.

Someone has an idea how I can end up in this function with $_SERVER["REQUEST_METHOD"] set to GET when the access is actually PROPFIND ? some apache config ?

thanks
Patrice

Xavier Dutoit

Thursday 08 March 2007 4:24:11 am

Well, that's seems to be something around apache indeed.

What's the diff between the prod and the dev ?

I don't have any idea, about what could be the problem. What's your apache config ? php as cgi or module ? ...

On the prod, it works fine with my apache 1.x, I'll try on the dev with lighttpd+fastcgi to see how it reacts...

http://www.sydesy.com

eZ debug

Timing: Jan 30 2025 22:22:10
Script start
Timing: Jan 30 2025 22:22:10
Module start 'content'
Timing: Jan 30 2025 22:22:10
Module end 'content'
Timing: Jan 30 2025 22:22:11
Script end

Main resources:

Total runtime0.1967 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 588.0469370.2891
Module start 'content' 0.00690.0135 958.33591,009.6875
Module end 'content' 0.02050.1762 1,968.02343,899.4688
Script end 0.1967  5,867.4922 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00432.1699200.0002
Check MTime0.00130.6506200.0001
Mysql Total
Database connection0.00060.314210.0006
Mysqli_queries0.105053.37251410.0007
Looping result0.00130.65181390.0000
Template Total0.175889.410.1758
Template load0.00070.343110.0007
Template processing0.175189.018810.1751
Override
Cache load0.00040.226210.0004
Sytem overhead
Fetch class attribute can translate value0.00190.940810.0019
XML
Image XML parsing0.00020.112810.0002
General
dbfile0.00723.6491200.0004
String conversion0.00000.002930.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs