-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
4.8.7, 4.8.8, 4.8.10
-
None
-
Minor
-
2
-
Issue Summary
When the Analytics Client Plugin is disabled Repository Permissions (Default and per repository) cannot load with the error:
Error rendering WebPanel (:page-repositories/FECRU.plugin.admin.pages.repositories.defaultPermissionsTab): Unable to compile Soy templates at: com.atlassian.fecru.plugins.fecru-admin-plugin:page-repositories com.atlassian.plugin.web.renderer.RendererException: Unable to compile Soy templates at: com.atlassian.fecru.plugins.fecru-admin-plugin:page-repositories
Steps to Reproduce
- Disable Analytics Client Plugin
- Navigate to Administration > Repository Settings > Repositories > Defaults
- Click on the Permissions Tab
Expected Results
The permissions page renders properly. Enabling analytics is optional, thus all components using this module shall have an optional dependency on it.
Actual Results
The below exception is thrown in the xxxxxxx.log file:
2022-06-02 15:14:55,739 WARN [qtp1570358965-1279 ] com.atlassian.plugin.web.model.ResourceTemplateWebPanel ResourceTemplateWebPanel-writeHtml - Error rendering WebPanel (:page-repositories/FECRU.plugin.admin.pages.repositories.defaultPermissionsTab): Unable to compile Soy templates at: com.atlassian.fecru.plugins.fecru-admin-plugin:page-repositories com.atlassian.plugin.web.renderer.RendererException: Unable to compile Soy templates at: com.atlassian.fecru.plugins.fecru-admin-plugin:page-repositories at com.atlassian.soy.impl.webpanel.SoyWebPanelRenderer.render(SoyWebPanelRenderer.java:46) [?:?] .... Caused by: com.google.common.util.concurrent.UncheckedExecutionException: java.lang.IllegalStateException: Required plugin module com.atlassian.analytics.analytics-client:js-events was either missing or disabled at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2203) [guava-18.0.jar:?] at com.google.common.cache.LocalCache.get(LocalCache.java:3937) [guava-18.0.jar:?] at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3941) [guava-18.0.jar:?] at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4824) [guava-18.0.jar:?] at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4830) [guava-18.0.jar:?] at com.atlassian.soy.impl.WebResourceTemplateSetFactory.get(WebResourceTemplateSetFactory.java:73) [?:?] at com.atlassian.soy.impl.DefaultSoyManager.strainTofu(DefaultSoyManager.java:241) [?:?] at com.atlassian.soy.impl.DefaultSoyManager.access$100(DefaultSoyManager.java:33) [?:?] at com.atlassian.soy.impl.DefaultSoyManager$1.load(DefaultSoyManager.java:73) [?:?] at com.atlassian.soy.impl.DefaultSoyManager$1.load(DefaultSoyManager.java:69) [?:?] at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3527) [guava-18.0.jar:?] at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2319) [guava-18.0.jar:?] at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2282) [guava-18.0.jar:?] at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2197) [guava-18.0.jar:?] at com.google.common.cache.LocalCache.get(LocalCache.java:3937) [guava-18.0.jar:?] at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3941) [guava-18.0.jar:?] at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4824) [guava-18.0.jar:?] at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4830) [guava-18.0.jar:?] at com.atlassian.soy.impl.DefaultSoyManager.render(DefaultSoyManager.java:143) [?:?] ... 204 more Caused by: java.lang.IllegalStateException: Required plugin module com.atlassian.analytics.analytics-client:js-events was either missing or disabled at com.atlassian.soy.impl.WebResourceTemplateSetFactory$TemplateSetBuilder.addTemplatesForTree(WebResourceTemplateSetFactory.java:110) [?:?] at com.atlassian.soy.impl.WebResourceTemplateSetFactory$TemplateSetBuilder.addTemplatesForTree(WebResourceTemplateSetFactory.java:125) [?:?] at com.atlassian.soy.impl.WebResourceTemplateSetFactory$TemplateSetBuilder.addTemplatesForTree(WebResourceTemplateSetFactory.java:115) [?:?] at com.atlassian.soy.impl.WebResourceTemplateSetFactory$TemplateSetBuilder.addTemplatesForTree(WebResourceTemplateSetFactory.java:125) [?:?] at com.atlassian.soy.impl.WebResourceTemplateSetFactory$TemplateSetBuilder.addTemplatesForTree(WebResourceTemplateSetFactory.java:115) [?:?] at com.atlassian.soy.impl.WebResourceTemplateSetFactory$TemplateSetBuilder.addTemplatesForTree(WebResourceTemplateSetFactory.java:125) [?:?] at com.atlassian.soy.impl.WebResourceTemplateSetFactory$TemplateSetBuilder.addTemplatesForTree(WebResourceTemplateSetFactory.java:115) [?:?] at com.atlassian.soy.impl.WebResourceTemplateSetFactory$TemplateSetBuilder.addTemplatesForTree(WebResourceTemplateSetFactory.java:125) [?:?] at com.atlassian.soy.impl.WebResourceTemplateSetFactory$TemplateSetBuilder.addTemplatesForTree(WebResourceTemplateSetFactory.java:115) [?:?] at com.atlassian.soy.impl.WebResourceTemplateSetFactory$TemplateSetBuilder.access$200(WebResourceTemplateSetFactory.java:93) [?:?] at com.atlassian.soy.impl.WebResourceTemplateSetFactory.findRequiredTemplates(WebResourceTemplateSetFactory.java:87) [?:?] at com.atlassian.soy.impl.WebResourceTemplateSetFactory.access$000(WebResourceTemplateSetFactory.java:34) [?:?] at com.atlassian.soy.impl.WebResourceTemplateSetFactory$1.load(WebResourceTemplateSetFactory.java:61) [?:?] at com.atlassian.soy.impl.WebResourceTemplateSetFactory$1.load(WebResourceTemplateSetFactory.java:57) [?:?] at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3527) [guava-18.0.jar:?] at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2319) [guava-18.0.jar:?] at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2282) [guava-18.0.jar:?] at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2197) [guava-18.0.jar:?] ... 222 more
Workaround
- Navigate to Administration > System Settings > Manage Add-ons
- Search for "Analytics" under System plugins filter
- Enable the Analytics Client plugin