Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-12526

webdav patch for other webservers than apache e.g. lighttpd with fcgi

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Medium Medium
    • Future
    • 3.10.0, 3.9.4, 4.0.0
    • Legacy > WebDAV
    • None

    Description

      If you want to use the webdav funtionality with other webserver configurations than apache mit mod_php you have may be the problem that you don't have the php server var

      $_SERVER['SCRIPT_URL']
      

      To fix this, replace all usage of this variable with

      $scriptURL = $_SERVER["REQUEST_URI"] . '/';
      

      This works very well for lighttpd 1.4 + fcgi php 5.2
      Tested webdav clients: konqueror, gnome webdavclient, ie6

      with ie6 i had a small problem to access for example the url media/images to display all pictures under this folder. Because the webdavserver looks after 'media' as a virtual folder, but the virtualfolder array has only array('Media','Content') and didn't match because of the difference of the first characterer.
      I don't understand this, that only the ie does this. Maybe the webdavclient do something different e.g. caching - requesting.

      For me i change the virtual Folder name to lowercase:

      static function virtualContentFolderName()
          {
              return ezi18n( 'kernel/content', "content" );
          }
      
          static function virtualMediaFolderName()
          {
              return ezi18n( 'kernel/content', "media" );
          }
      

      That works for me in all tested webdavclients.

      Attachments

        Activity

          People

            andre1 andre1
            4d91e976-d41f-487b-ae85-f7216bd06dac@accounts.ibexa.co Felix Woldt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: