Bug #67238
closed
Avoid race conditions in typo3temp/Cache
Added by Bernhard Kraft over 9 years ago.
Updated about 6 years ago.
Description
Race conditions can occur when the cache in typo3temp/Cache gets cleared, for example by using the Install Tool "Clear all caches" button. The cache is currently cleared using GeneralUtility::rmdir() which does a directory traversal and unlinks all contained files. Instead GeneralUtility::flushDirectory() should get used. This method renames the directory into a temp-dir name and then removes the temp-dir using GeneralUtility:rmdir(). But as the rename is atomic there will be no race condition where files within typo3temp/Cache/ will get recreated while the cache-clearing process is still running.
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/39893
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/39895
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/39895
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/39895
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/39895
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/39895
Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/39895
Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/40650
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF