Method func_delete catches an InsufficientFileAccessPermissionsException instead of an expected InsufficientFolderAccessPermissionsException.
[BUGFIX] ExtendedFileUtility.php: func_delete
This fixes an issue within method func_delete trying to catch a file
access exception instead of expected folder access exception during
delete of an folder.
Reviewed-by: Frans Saris
Reviewed-by: Christian Weiske
Tested-by: Christian Weiske
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
#2 Updated by Christian Weiske about 6 years ago
- Enter file list
- Create folder
- Folder is shown as RW in file list, delete icon is visible
- On your shell, make the folder readonly (
$ chmod -w foldername)
- In TYPO3, click the delete icon and confirm
- An uncaught exception will occur
With the patch, the exception is caught and a proper error message is shown.