Issue Bug Closed

#23071[Caching framework] fileBackend testcase removes files in /sbin

Christian Kuhn 07/02/10, 12:08 updated 08/12/10, 13:14

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)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.