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

Folders not correctly detected using webdav on eZ 4.1.x

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • None
    • 4.1.2
    • Legacy > WebDAV
    • None
    • Operating System: Ubuntu 8.04LTS / Debian
      PHP Version: PHP 5.2.0-8+etch15
      Database and version: Mysql 5.0.32-Debian_7etch10-log
      Browser (and version):

    Description

      Hi all,

      on a fresh install of any eZ 4.1 (tested on 4.1.1 and 4.1.2), if in any class defined in the settings to be a folder, you add an attribute that permits you to upload files (an ezimage o ezfile attribute) then the folder is treated as a file instead of a container.
      The problem is in eZWebDAVContentBackend class on (kernel/private/classes/webdav/ezwebdavcontentbackend.php) in the function isObjectFolder:

          protected function isObjectFolder( $object, &$class )
          {
              $classIdentifier = isset( $class->ClassIdentifier ) ? $class->ClassIdentifier : null;
      
              return in_array( $classIdentifier, $this->FolderClasses );
          }
      

      it should be:

          protected function isObjectFolder( $object, &$class )
          {
              $classIdentifier = isset( $object->attribute('class_identifier') ) ? $object->attribute('class_identifier') : null;
      
              return in_array( $classIdentifier, $this->FolderClasses );
          }
      
      Steps to reproduce

      install eZ 4.1.2
      add an ezimage attribute to the folder class
      try to access folders via webdav

      Attachments

        Activity

          People

            als als
            78425cf8-15d1-497b-8b9e-d1e9f8d91cf3@accounts.ibexa.co Xavier Serna
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: