Bug #56511

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

Added by Rico Sonntag over 5 years ago. Updated 12 months ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
Start date:
2014-03-04
Due date:
% Done:

100%

TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Method func_delete catches an InsufficientFileAccessPermissionsException instead of an expected InsufficientFolderAccessPermissionsException.

Associated revisions

Revision 816f8af1 (diff)
Added by Rico Sonntag over 5 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

History

#1 Updated by Gerrit Code Review over 5 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 over 5 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 over 5 years ago

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

#4 Updated by Benni Mack 12 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF