Actions
Bug #23071
closed[Caching framework] fileBackend testcase removes files in /sbin
Start date:
2010-07-02
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
Type: Bugfix
Branches: trunk, 4.4, 4.3
Problem:
setCacheDirectoryThrowsExceptionOnNonWritableDirectory() tests if the fileBackend throws an exception if the target cache directory is not writable. This is done by using /sbin as target directory. The tearDown() method then removes the directory again. This will cause hazard if the tests are run by root.
Solution:
Create a random directory in typo3temp/, remove write permissions explicitly and clean up afterwards.
(issue imported from #M14967)
Files
Updated by Christian Kuhn over 14 years ago
Committed to:
- trunk rev. 8114
- 4.4 rev. 8115
- 4.3 rev. 8116
Actions