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 over 10 years ago. Updated over 5 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 #1

Updated by Wouter Wolters over 10 years ago

  • Category set to File Abstraction Layer (FAL)
Actions #2

Updated by Gerrit Code Review over 10 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

Actions #3

Updated by Gerrit Code Review over 10 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

Actions #4

Updated by Markus Hölzle over 10 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #5

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF