Bug #56511

/typo3/sysext/core/Classes/Utility/File/ExtendedFileUtility.php: func_delete

Added by Rico Sonntag about 6 years ago. Updated over 1 year ago.

Must have
File Abstraction Layer (FAL)
Target version:
Start date:
Due date:
% Done:


TYPO3 Version:
PHP Version:
Is Regression:
Sprint Focus:


Method func_delete catches an InsufficientFileAccessPermissionsException instead of an expected InsufficientFolderAccessPermissionsException.

Associated revisions

Revision 816f8af1 (diff)
Added by Rico Sonntag about 6 years ago

[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.

Change-Id: Iaf76100cd668ef4b1a36a5d9052a6f185ffa6b7b
Resolves: #56511
Releases: 6.2
Reviewed-on: https://review.typo3.org/28019
Reviewed-by: Frans Saris
Reviewed-by: Christian Weiske
Tested-by: Christian Weiske
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters


#1 Updated by Gerrit Code Review about 6 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/28019

#2 Updated by Christian Weiske about 6 years ago

Steps to reproduce:
  1. Enter file list
  2. Create folder
  3. Folder is shown as RW in file list, delete icon is visible
  4. On your shell, make the folder readonly ($ chmod -w foldername)
  5. In TYPO3, click the delete icon and confirm
  6. An uncaught exception will occur

With the patch, the exception is caught and a proper error message is shown.

#3 Updated by Rico Sonntag about 6 years ago

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

#4 Updated by Benni Mack over 1 year ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF