Issue Bug Closed

#85019Recycler folder detection loop does not end

Alexander Stehlik 05/16/18, 08:57 updated 10/02/18, 10:46

Description

When a storage does not have a _recycler_ folder the loop for detecting the folder in typo3/sysext/core/Classes/Resource/ResourceStorage.php->getNearestRecyclerFolder() does not end.

The problem seems to be the check for the root folder:

do {

...

while ($recyclerFolder === null && $folder !== $rootFolder);

$folder and $rootFolder point to the same directory but are different object instances. Therefore the strict comparison fails here.

This seems to be a regression introduced in #81836

Reviews 2