Details
-
Bug
-
Resolution: Obsolete
-
Medium
-
None
-
4.2.0
-
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