Details
-
Bug
-
Resolution: Fixed
-
Major
-
1.8.2
-
None
-
None
-
Unknown
-
Description
The reason for this is that the cache is created with the same name for both wikis:
Cache with name [urlnormalizer.configuration] already exist [...] Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to lookup component [org.xwiki.contrib.urlnormalizer.internal.configuration.URLNormalizerConfigurationStore] identified by type [class org.xwiki.contrib.urlnormalizer.internal.configuration.URLNormalizerConfigurationStore] and hint [default] at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:204) at org.xwiki.component.embed.GenericProvider.getInstance(GenericProvider.java:111) at org.xwiki.component.embed.GenericProvider.get(GenericProvider.java:100) ... 68 common frames omitted Caused by: org.xwiki.component.phase.InitializationException: Failed to create URL Normalizer Configuration cache at org.xwiki.contrib.urlnormalizer.internal.configuration.URLNormalizerConfigurationStore.initialize(URLNormalizerConfigurationStore.java:111) at org.xwiki.component.embed.InitializableLifecycleHandler.handle(InitializableLifecycleHandler.java:39) at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:365) at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:451) at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:201) ... 70 common frames omitted Caused by: org.xwiki.cache.CacheException: Cache with name [urlnormalizer.configuration] already exist at org.xwiki.cache.infinispan.internal.InfinispanCacheFactory.newCache(InfinispanCacheFactory.java:152) at org.xwiki.cache.internal.DefaultCacheManager.createNewCache(DefaultCacheManager.java:112) at org.xwiki.cache.internal.DefaultCacheManager.createNewCache(DefaultCacheManager.java:85) at org.xwiki.contrib.urlnormalizer.internal.configuration.URLNormalizerConfigurationStore.initialize(URLNormalizerConfigurationStore.java:109) ... 74 common frames omitted
Afterwards the URLNormalizer only works in one of the wikis, whichever gets initialzied first.
The easiest fix seems to be to install the org.xwiki.contrib:application-urlnormalizer-api only in the ROOT namespace. If this is not possible as cache keys are not unique across subwikis, maybe add the wiki name to the cache.