This issue has been created
There are 3 updates.
 
 
XWiki Commons / cid:jira-generated-image-avatar-55f4daa7-716b-4486-9422-d91f8ab8f3d1 XCOMMONS-3875 In Progress

Infinispan file stores without an explicit location all share the same directory

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-1d3dde64-f8c5-4f2f-afdd-a9b92cacf9c9 Thomas Mortagne created this issue on 06/Nov/26 16:45
 
Summary: Infinispan file stores without an explicit location all share the same directory
Issue Type: cid:jira-generated-image-avatar-55f4daa7-716b-4486-9422-d91f8ab8f3d1 Bug
Affects Versions: 8.3-milestone-1
Assignee: Unassigned
Components: Cache
Created: 06/Nov/26 16:45
Priority: cid:jira-generated-image-static-major-3ea1d6f8-af24-45b9-add4-795be52494d7 Major
Reporter: Thomas Mortagne
Description:

When a cache configuration declares a file store without a location (like the default lesscss.skinfiles.cache configuration, with path=""), XWiki is supposed to put it in a dedicated directory <temporary directory>/cache/<cache configuration id>.

Because of an inverted condition in AbstractCacheConfigurationLoader#createTempDir() (getConfigurationId() == null instead of != null), the configuration id is never appended, so all those file stores share the same <temporary directory>/cache directory (for both data and index).

With the default configuration it has no visible effect since only one cache has a file store, but several caches with a file store and no explicit location would share the same Infinispan store files.

 
 

3 updates

 
cid:jira-generated-image-avatar-1d3dde64-f8c5-4f2f-afdd-a9b92cacf9c9 Changes by Thomas Mortagne on 06/Nov/26 16:45
 
Fix Version: 18.10.0-rc-1
Assignee: Thomas Mortagne
Status: Open In Progress