[BUGFIX] Storage uses wrong identifier for processing folder
authorAndreas Wolf <andreas.wolf@typo3.org>
Thu, 18 Oct 2012 18:37:24 +0000 (20:37 +0200)
committerSteffen Ritter <info@rs-websystems.de>
Sun, 21 Oct 2012 13:37:51 +0000 (15:37 +0200)
All absolute identifiers within a storage have to begin with a "/". The
Storage does not respect this for the processing folder, leading to
wrong identifiers being generated for images inside this folder.

To account for this change, the sys_file_processedfile table should be
cleared. All identifiers will be regenerated then.

Change-Id: I19293ea766f54830264555f63094471f73a61b28
Resolves: #42180
Releases: 6.0
Reviewed-on: http://review.typo3.org/15836
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
typo3/sysext/core/Classes/Resource/ResourceStorage.php

index d72028e..251983c 100644 (file)
@@ -1945,7 +1945,7 @@ class ResourceStorage {
                        if (!empty($this->storageRecord['processingfolder'])) {
                                $processingFolder = $this->storageRecord['processingfolder'];
                        }
-                       $processingFolder = trim($processingFolder, '/');
+                       $processingFolder = '/' . trim($processingFolder, '/') . '/';
                        // this way, we also worry about deeplinked folders like typo3temp/_processed_
                        if ($this->driver->folderExists($processingFolder) === FALSE) {
                                $processingFolderParts = explode('/', $processingFolder);
@@ -1964,4 +1964,4 @@ class ResourceStorage {
        }
 }
 
-?>
\ No newline at end of file
+?>