Forums / Install & configuration / setting up webdav on 3.7.4 stable (svn)

setting up webdav on 3.7.4 stable (svn)

Author Message

Michael Zeidler

Tuesday 24 January 2006 3:54:45 pm

Hello,

I try to setup webdav. I can use cadaver to access the webdav-service on my installation (stable 3.7 svn-branch).

$ cadaver http://webdav.myhost.org
dav:/> ls
Listing collection `/': succeeded.
Coll:   web                                    0  Jan 18 15:44

I can also browse into the siteaccess 'web' by authentication:

dav:/> cd web
Authentication required for eZ publish WebDAV interface on server `webdav.myhost.org':
Username: admin
Password: 
dav:/web/> ls
Listing collection `/web/': succeeded.
Coll:   Content                                0  Jan 18 15:44
Coll:   Media                                  0  Jan 18 15:44
        info.txt                              97  Dec 13 15:54
dav:/web/>

But when I try to get into the Content-folder my problem appears:

dav:/web/> cd Content
Could not access /web/Content/ (not WebDAV-enabled?):
Did not find a collection resource.
dav:/web/>

Here the logs to the last webdav-command:

2006-01-25 02:02:35 : Requested URI is: /web/Content/ [webdav.php]
2006-01-25 02:02:36 : start path: /web/Content/ [CS:currentSitePath]
2006-01-25 02:02:36 : indexdir: web/Content/ [CS:currentSitePath]
2006-01-25 02:02:36 : site web: web/Content/ [CS:currentSitePath

Due to the logs nothing special can be noticed. I also can retrtieve the folders 'Content' and 'Media' inside the administration-backend at the countrary to the webdav-access. It seems that the current log-output lacks my issue presented here.

-------------------------------------------------------------------------------------------
join #ezpublish on irc.freenode.org

Michael Zeidler

Tuesday 24 January 2006 4:09:07 pm

I also had to alter ./kernel/classes/webdav/ezwebdavcontentserver.php in line 943 (svn 3.7 stable) from:

if ( preg_match( "#^/" . preg_quote( $site ) . "(.*)$#", $path, $matches ) )

to

if ( preg_match( "#^" . preg_quote( $site ) . "(.*)$#", $path, $matches ) )

to get webdav partly running so that i can browse into the 'web'-folder due to the variables $path and $site:

$site = 'web'  
$path = 'web/Content/'

otherwise i cant browse into the 'web'-folder and in the webdav log appears:

no valid site was found..

look at the complete function:

function currentSiteFromPath( $path )
    {
        $this->appendLogEntry( "start path: $path", 'CS:currentSitePath' );

        $indexDir = eZSys::indexDir();

        // Remove indexDir if used in non-virtualhost mode.
        if ( preg_match( "#^" . preg_quote( $indexDir ) . "(.+)$#", $path, $matches ) )
        {
            $path = $matches[1];
        }

        $this->appendLogEntry( "indexdir: $path", 'CS:currentSitePath' );

        // Get the list of available sites.
        $sites = $this->availableSites();

        foreach ( $sites as $site )
        {
            $this->appendLogEntry( "site: '$site'  path: '$path'", '<-- SEAWOLF -->' );
            
            // Check if given path starts with this site-name, if so: return it.
            //SEAWOLF if ( preg_match( "#^/" . preg_quote( $site ) . "(.*)$#", $path, $matches ) )
            if ( preg_match( "#^" . preg_quote( $site ) . "(.*)$#", $path, $matches ) )
            {
                $this->appendLogEntry( "site $site: $path", 'CS:currentSitePath' );
                return $site ;
            }
        }

        $this->appendLogEntry( "no valid site was found..", 'CS:currentSitePath' );
        return false ;
    }

-------------------------------------------------------------------------------------------
join #ezpublish on irc.freenode.org

Michael Zeidler

Wednesday 25 January 2006 2:03:13 pm

Could at least someone acknowledge if the svn 3.7 stable svn webdav functionality runs without problems on his installation?
Thank very much.

-------------------------------------------------------------------------------------------
join #ezpublish on irc.freenode.org

Björn Dieding@xrow.de

Wednesday 25 January 2006 8:33:01 pm

WAVE here

I have no problems on win32, win64 and suse 9.3_64

With client webdrive and IE

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Łukasz Serwatka

Thursday 26 January 2006 12:07:18 am

Hi SEAwolfx,

Same here, works fine on SUSE 10.0 and Konqueror 3.4.2.

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

Michael Zeidler

Thursday 26 January 2006 2:00:15 am

Thanks ;)

What do you think about my hack? Why don`t you both need this? What values for $site and $path were assigned on your installation? According the original preg_match() as prestented above I guess your variables look like this?

$site = 'web'  
$path = '/web/Content/' 

If so, where do I further have to look for the right values?

-------------------------------------------------------------------------------------------
join #ezpublish on irc.freenode.org

eZ debug

Timing: Jan 18 2025 16:19:49
Script start
Timing: Jan 18 2025 16:19:49
Module start 'content'
Timing: Jan 18 2025 16:19:49
Module end 'content'
Timing: Jan 18 2025 16:19:49
Script end

Main resources:

Total runtime0.6537 sec
Peak memory usage4,096.0000 KB
Database Queries205

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 588.9844180.8203
Module start 'content' 0.00620.5564 769.8047644.2344
Module end 'content' 0.56250.0911 1,414.0391341.0625
Script end 0.6537  1,755.1016 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.5922210.0002
Check MTime0.00150.2272210.0001
Mysql Total
Database connection0.00080.116110.0008
Mysqli_queries0.578988.55802050.0028
Looping result0.00170.25462030.0000
Template Total0.626895.920.3134
Template load0.00200.311620.0010
Template processing0.624795.562420.3124
Template load and register function0.00010.018210.0001
states
state_id_array0.00090.134610.0009
state_identifier_array0.00100.147320.0005
Override
Cache load0.00170.2645450.0000
Sytem overhead
Fetch class attribute can translate value0.00090.143840.0002
Fetch class attribute name0.00120.180090.0001
XML
Image XML parsing0.00280.422040.0007
class_abstraction
Instantiating content class attribute0.00000.0032120.0000
General
dbfile0.00420.6367410.0001
String conversion0.00000.001230.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
15content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
10content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 40
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs