Project

General

Profile

Actions

Bug #52306

closed

Error if selecting a File or Folder and the previous selected folder doesn't exist anymore

Added by Markus Hölzle almost 11 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
-
Start date:
2013-09-26
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.1
PHP Version:
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:

Description

If the folder from which you selected your last file doesn't exixt anymore there is a mature bug.
An TYPO3\CMS\Core\Resource\Exception\ResourceDoesNotExistException will be thrown.

The Bug is in typo3\sysext\recordlist\Classes\Browser\ElementBrowser.php
Everywhere where \TYPO3\CMS\Core\Resource\ResourceFactory::getInstance()->retrieveFileOrFolderObject($this->expandFolder) is called, there must be a try-catch!
For example in line 1161:

$fileOrFolderObject = \TYPO3\CMS\Core\Resource\ResourceFactory::getInstance()->retrieveFileOrFolderObject($this->expandFolder);

should be

try{
   $fileOrFolderObject = \TYPO3\CMS\Core\Resource\ResourceFactory::getInstance()->retrieveFileOrFolderObject($this->expandFolder);
}catch(\Exception $e){
}

Actions

Also available in: Atom PDF