Bug #51319
Broken error handling for not existing folder
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
Associated revisions
[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
Applied in changeset 6fe13fdbca9c759d931777fc5a51bc4361c38602.