Creation of typo3temp/_processed_/ required write access to root folder
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
- 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:
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.