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

WEBDAV not working if SITEACCESS is located in an extension

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Medium Medium
    • None
    • 4.2.0
    • Legacy > WebDAV
    • None
    • Operating System:
      PHP Version: (please be specific, like '4.4.3' or '5.1.5')
      Database and version:
      Browser (and version):

    Description

      After my test of webdav fucntion of ez4.2.0 i found out the following errors

      1. not working if siteaccess is located in an extension
      => filectime( 'settings/siteaccess/' . $site ); => null

       // ###JAC_PATCH_G_07_EZ_4.2.0###
              $contentEntry["ctime"]    = 0; //filectime( 'settings/siteaccess/' . $site );
              $contentEntry["mtime"]    = 0; //filemtime( 'settings/siteaccess/' . $site );
      

      patch attached

      2. FolderClasses defined in webdav.ini.appen.php of siteaccess is not loadet properbly
      because it is set in the __contructor of eZWebDAVContentBackend but have to be
      updated if sitaccess is changed

      see ->setCurrentSite( $site )

      patch attached

      Enhancements
      =============
      I did 2 enhancement, too.

      1. Enhancement createFolder() FolderClass can be ClassId or ClassIdentifer

      see also old issue http://issues.ez.no/IssueView.php?Id=12530

          # webdav.ini.append.php
          [FolderSettings]
          FolderClass=jac_folder
      

      2. Enhancement createFolder() ProcessFolderNamePostfix

      With this function you can create Folder contentobjects different from 'FolderClass' (standard Folder)

      If the patch is enabled in webdav.ini than you can put the class_identifer on the end of your New Folder Name - The delimiter is a '.'

      'My Folder.folder'   =>  'My Folder' ( contentobject_class = folder )
      'My Folder.gallery' =>  'My Folder' ( contentobject_class = gallery )
      
          # if set to enabled ez try to get the class_identifer for the
          # new Folder from given Folder Name
          # 'FolderName.class_identifer'
          # => creates a new ez object( class_identifer ) with name 'FolderName'
          # delimiter is a '.'
          # e.g. 'My new Gallery.gallery' =>  'My new Gallery' (object_content_class=gallery)
          #
          # if class_identifer is not found skip this function and use ez default
          # webdav.ini.append.php
          [FolderSettings]
          ProcessFolderNamePostfix=enabled
      

      In the attached Patch you can identify the enhancement with the comment
      The Enhancement only has effect on function ->createFolder()

      // Enhancement START
      
      // Enhancement END
      
      

      The enhancements are not required.
      All the other patches are required to use webdav with extension -siteaccesses

      If you have any question? Please add a comment

      Thank's

      Attachments

        Activity

          People

            unknown unknown
            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: