Project

General

Profile

Actions

Bug #85019

closed

Recycler folder detection loop does not end

Added by Alexander Stehlik almost 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
-
Start date:
2018-05-16
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.2
Tags:
Complexity:
easy
Is Regression:
Yes
Sprint Focus:

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


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #81836: deleting a file inside _recycler_ folder generates new file with preview_ prefixClosed2017-07-11

Actions
Actions

Also available in: Atom PDF