Bug #55833

Creation of typo3temp/_processed_/ required write access to root folder

Added by Alexander Stehlik almost 8 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Should have
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:

  1. Use an image file in you template that comes from the fallback storage (which uses typo3temp/_processed_/ as processing folder)
  2. make sure the imge gets resized (e.g. by setting the width property)
  3. Prevent write access for the Webserver to the TYPO3 root folder, but allow write access to typo3temp/
  4. 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.


Related issues

Related to TYPO3 Core - Bug #56388: _preocessed_ not using fileCreateMaskClosed2014-02-27

Actions

Also available in: Atom PDF