Uploaded image for project: 'Cache Modules'
  1. Cache Modules
  2. MGNLCACHE-117

Versionhandler of the cache module breaks if there's no cache filter with the default name

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 5.4.1
    • 5.4
    • None
    • Sprint 4 (Kromeriz)
    • 5

    Description

      As part of our Magnolia 5 migration I am looking into the 5.3 -> 5.4 upgrade.
      Apart from a few code changes this goes well. However the caching configuration completely breaks.

      We have a multisite caching configuration structured as per :
      https://documentation.magnolia-cms.com/display/DOCS53/Advanced+Cache+module

      However the versionhandler of the regular cache module doesn't expect this in the version upgrade from 5.3 to 5.4
      At info.magnolia.module.cache.setup.CacheModuleVersionHandler#126 it tries to rename a property that does not exist in a multisite configuration resulting in an error

      ERROR  info.magnolia.module.InstallContextImpl 10.07.2015 17:30:18 -- [1/17 tasks - Magnolia Cache Module (version 5.4.0)]> Could not install or update cache module. Task 'Renaming of 'configurations' to 'contentCaching'' failed. (PathNotFoundException: /server/filters/cache/cacheConfigurationName)
      info.magnolia.module.delta.TaskExecutionException: Could not execute task: Path not found: /server/filters/cache/cacheConfigurationName
              at info.magnolia.module.delta.AbstractRepositoryTask.execute(AbstractRepositoryTask.java:59)
              at info.magnolia.module.delta.ArrayDelegateTask.execute(ArrayDelegateTask.java:98)
              at info.magnolia.module.ModuleManagerImpl.applyDeltas(ModuleManagerImpl.java:511)
              at info.magnolia.module.ModuleManagerImpl.installOrUpdateModule(ModuleManagerImpl.java:493)
              at info.magnolia.module.ModuleManagerImpl$1.doExec(ModuleManagerImpl.java:274)
              at info.magnolia.context.MgnlContext$VoidOp.exec(MgnlContext.java:421)
      

      The documenation for 5.4 at https://documentation.magnolia-cms.com/display/DOCS/Advanced+Cache+modules does not give insight how it should be configured to make it work in a multisite situation so fixing it manually is currently not something I can do.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                efochr Evzen Fochr
                rico.jansen Rico Jansen
                Nils Breunese
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD

                    Time Tracking

                      Estimated:
                      Original Estimate - Not Specified
                      Not Specified
                      Remaining:
                      Remaining Estimate - 0d
                      0d
                      Logged:
                      Time Spent - 5.25h
                      5.25h