Issue Bug Closed

#89842ResourceStorage::evaluatePermisson set to true unconditionally in FileStorageExtraction/IndexingTask

Alexander Opitz 12/03/19, 18:15 updated 02/27/20, 12:42

Description

Since TYPO3 6.2 the both tasks got implemented to call ResourceStorage::setEvaluatePermissions(false) before and ResourceStorage::setEvaluatePermissions(true) afterwards. This was needed as the cli user may not have access rights while scheduler runs.

If now a task runs in same scheduler call after the FileStorageExtraction/IndexingTask he can’t access the storage anymore

Task failed to execute successfully. Class: TYPO3\CMS\Scheduler\Task\ExecuteSchedulableCommandTask, UID: 7, Code: 1430657869, You are not allowed to read folders

To reproduce:

  • In Scheduler add “File Abstraction Layer: Update storage index (scheduler)” and select your fileadmin as path
  • Add another Task, which does FAL handling like
ResourceFactory::getInstance()
->getObjectFromCombinedIdentifier('1:'); // Root path of fileadmin normally
  • Select both tasks in Scheduler and press the “Run selected tasks” button

Result:

  • The Update Storage runs, but the second tasks fails with error message

Expected Result:

  • Both tasks run cleanly

Reviews 2