Bug #38652
closed
RTE spell checker is flooding directory typo3temp on Windows
Added by Gerhard Rupp over 12 years ago.
Updated about 7 years ago.
Category:
RTE (rtehtmlarea + ckeditor)
Description
As the spell checker in TYPO3 creates one *.tmp file for every single word of a text the typo3temp directory is crowded of files. The temporary files should be deleted after spell checking was completed.
- Category set to RTE (rtehtmlarea + ckeditor)
The files are indeed deleted with t3lib_div::unlink_tempfile()...
I am unable to reproduce this issue.
Maybe on Windows the file is not deleted if not closed...
- Subject changed from Spell checker is flooding directory typo3temp to RTE spell checker is flooding directory typo3temp on Windows
- Assignee set to Stanislas Rolland
- Target version set to 4.5.18
- PHP Version set to 5.3
- Status changed from New to Under Review
Even with the patched version the files remain in the temp directory.
Patch 2 didn´t work either.
The problem is related to windows path names containing backslashes.
Replacing the backslashes by adding
$tmpFileName = str_replace('\\', '/', $tmpFileName);
does the job.
But I think this replacement should be done in the unlink_tempfile function.
Should this work under 4.5?
Gerhard Rupp wrote:
Should this work under 4.5?
I think so.
I can´t get it running under 4.5. If I only replace the function unlink_tempfile everything is fine.
Gerhard Rupp wrote:
I can´t get it running under 4.5. If I only replace the function unlink_tempfile everything is fine.
Here is the same change for TYPO3 4.5: http://review.typo3.org/12754
I can confirm that this patch works on a windows server on TYPO3 4.5.18.
- Target version changed from 4.5.18 to 4.5.21
- Status changed from Under Review to Resolved
- Status changed from Resolved to Closed
Also available in: Atom
PDF