Uploaded image for project: 'XWiki Commons'
  1. XWiki Commons
  2. XCOMMONS-3875

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 18.10.0-rc-1
    • 8.3-milestone-1
    • Cache
    • None
    • Unit
    • Unknown
    • N/A
    • N/A

    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.

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            tmortagne Thomas Mortagne
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: