Project

General

Profile

Actions

Bug #23071

closed

[Caching framework] fileBackend testcase removes files in /sbin

Added by Christian Kuhn over 14 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Should have
Category:
Caching
Target version:
-
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

14967_v1.diff (1.21 KB) 14967_v1.diff Administrator Admin, 2010-07-02 12:09
14967_v1_4.3.diff (1.22 KB) 14967_v1_4.3.diff Administrator Admin, 2010-07-02 12:10
Actions #1

Updated by Christian Kuhn over 14 years ago

Committed to:
  • trunk rev. 8114
  • 4.4 rev. 8115
  • 4.3 rev. 8116
Actions

Also available in: Atom PDF