Bug #51319

Broken error handling for not existing folder

Added by Philipp Gampe almost 2 years ago. Updated over 1 year ago.

Status:Resolved Start date:2013-08-24
Priority:Should have Due date:
Assigned To:- % Done:

100%

Category:File Abstraction Layer (FAL) Spent time: -
Target version:-
TYPO3 Version:6.2 Is Regression:
PHP Version:5.5 Sprint Focus:
Complexity:medium

Description

If a folder is not accessible, the the whole file module is broken, not even the header row is displayed.

Also the module never tries to access any parent folder; the error message is wrong.

typo3/sysext/filelist/Classes/Controller/FileListController.php line 170.

I discovered this while reproducing #51190 which is a good way to trigger the error handling code.


Related issues

related to Core - Bug #51190: utf-8/multibyte characters break file list menu item Resolved 2013-08-19
related to Core - Task #51762: Exception instead of nice warning when opening filelist a... Resolved 2013-09-05

Associated revisions

Revision 6fe13fdb
Added by Ingo Schmitt over 1 year ago

[BUGFIX] Do not show exeption when folder is not accesible

When a storage folder is not accessible for the user a exception
is displayed. Same if the folder is missing.

This patch changes the exception to
\TYPO3\CMS\Core\Resource\Exception.

The user will get a flash message and FAL tries to display the
parent folder of the restricted folder. If the folder is
missing the parent folder is displayed.

Resolves: #51762, #51319
Releases: 6.2
Change-Id: I1fb930f8c13049eeddb27521326f1d0fc8707933
Reviewed-on: https://review.typo3.org/27189
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter

History

#1 Updated by Ingo Schmitt over 1 year ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF