Details
-
Bug
-
Resolution: Fixed
-
Medium
-
None
-
4.1.2
-
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
Issue Links
- is duplicated by
-
EZP-15046 WebDav not working on 4.1.2 (patch)
- Closed