Actions
Bug #55833
closedCreation of typo3temp/_processed_/ required write access to root folder
Status:
Closed
Priority:
Should have
Assignee:
Category:
File Abstraction Layer (FAL)
Target version:
Start date:
2014-02-10
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.4
Tags:
Complexity:
medium
Is Regression:
No
Sprint Focus:
Description
Steps to reproduce:
- Use an image file in you template that comes from the fallback storage (which uses
typo3temp/_processed_/
as processing folder) - make sure the imge gets resized (e.g. by setting the width property)
- Prevent write access for the Webserver to the TYPO3 root folder, but allow write access to
typo3temp/
- Open the Frontend
You will get an Exception:
#1323059807: You are not allowed to create directories in the folder "/"
The problem occurs during this call:
TYPO3\CMS\Core\Resource\ResourceStorage::createFolder("typo3temp/_processed_/")
Even if the typo3temp/
folder exists the ResourceStorage will check if the root directory is writable.
I would suggest to add a new createFolderRecursive method, which accepts an array of folder names that are created recursively. This would allow a permission check for every directory in the path, but only if the directory does not exist already.
Actions