Project

General

Profile

Actions

Bug #19299

closed

Could not delete directory recursively

Added by Jan Radecker about 16 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2008-09-08
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

When trying to delete a folder recursively in the backend filelist the following message appears:

Could not delete directory! Write-permission problem? Is directory "/path/to/fileadmin/testdata" empty? (You are not allowed to delete directories recursively).

The user actually IS allowed to delete recursively via (User Admin -> Mounts and Workspaces -> Directory: Delete recursively (rm -Rf)).

In TYPO3 4.2.1 this could be temporarely fixed by setting $GLOBALS['TYPO3_CONF_VARS']['BE']['disable_exec_function'] to '0', but this could cause other problems with safe_mode activated.

In the file t3lib/class.t3lib_extfilefunc.php Line 437 there is a completely unneccessary check for !$this->dont_use_exec_commands (which checks the status of $GLOBALS['TYPO3_CONF_VARS']['BE']['disable_exec_function']).
In previous versions of TYPO3 (< 4.2) a exec() call was used at this place but with TYPO3 4.2 this was eliminated.

The suggested solution is to eliminate the check for !$this->dont_use_exec_commands.

A patch for TYPO3 4.2.1 is attached.

Environment:
- Linux Debian 4.0
- PHP 5.2.0 CGI
- safe_mode: on

(issue imported from #M9307)


Files

bug.diff (4.63 KB) bug.diff Administrator Admin, 2008-09-08 10:19
9307.diff (952 Bytes) 9307.diff Administrator Admin, 2009-01-16 18:49
Actions

Also available in: Atom PDF