Bug #52306
closedError if selecting a File or Folder and the previous selected folder doesn't exist anymore
100%
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){ }
Updated by Wouter Wolters over 11 years ago
- Category set to File Abstraction Layer (FAL)
Updated by Gerrit Code Review over 11 years ago
- Status changed from New to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/24842
Updated by Gerrit Code Review about 11 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/24842
Updated by Markus Hölzle about 11 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 438b73bd6b1ebc28138c7acef28a9b15d1c5d6d7.