[TYPO3-core] FYI72: Bug 14967: [Caching framework] fileBackend testcase removes files in /sbin
Christian Kuhn
lolli at schwarzbu.ch
Fri Jul 2 12:13:13 CEST 2010
The following patch will be committed in 72 hours if nobody objects.
Type: Bugfix
Branches: trunk, 4.4, 4.3
BT: http://bugs.typo3.org/view.php?id=14967
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 instead of using /sbin as test directory.
Regards
Christian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 14967_v1.diff
Type: text/x-patch
Size: 1236 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100702/0a5f9e29/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 14967_v1_4.3.diff
Type: text/x-patch
Size: 1246 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100702/0a5f9e29/attachment-0001.bin>
More information about the TYPO3-team-core
mailing list