Description
Description
Related Objects
Related Objects
- Mentioned In
- T124027: unlink(c:/xampp/tmp/l10n_cache-en.cdb): Permission denied
- Mentioned Here
- T161453: Having LocalisationCache directory default to system tmp directory is insecure
T124027: unlink(c:/xampp/tmp/l10n_cache-en.cdb): Permission denied
T127127: Error writing to CDB file when several MediaWiki installations use the same tmp directory
Event Timeline
Comment Actions
I propose to close this task.
It was a subtask of T127127 in which, in 1.27.0 and 1.27.1, /tmp (or equivalent) was used as directory for CDB localisation files leading to conflicts on shared hosts. This default /tmp was reverted as insecure in T161453 (MW 1.27.2 or greater).
It is still possible to trigger this issue, but I would say it is intentionally because:
- either you set $wgCacheDirectory to "/tmp" (a directory with +t Unix permission with multiple Unix users writing in it). I documented against it in https://www.mediawiki.org/wiki/Manual:$wgCacheDirectory,
- either you set $wgLocalisationCacheConf['store'] to "files" or "array" without setting $wgCacheDirectory or $wgLocalisationCacheConf['storeDirectory']; in this case it tries to write files on the root directly / because the directory is is evaluated as an empty string.
The first case is now documented against, and the second is advanced configuration and I guess people would read documentation before changing this parameter. In any case there is an explicit exception saying it cannot be written.