Details
-
Bug
-
Resolution: Fixed
-
High
-
4.9.1, 4.16.1, 4.16.0
-
13
-
Severity 3 - Minor
-
77
-
Description
Problem
In atlassian-jira.log you'll see RuntimeException such as these which is coming while pushing few Insight plugin static resources into Jira's batch.js file:
java.lang.RuntimeException: Cannot read resource includes/js/panel/panel-general.js java.lang.RuntimeException: Cannot read resource includes/js/panel/panel-general.soy
2021-03-22 10:19:45,462+0300 http-nio-8080-exec-20 WARN xxxxxxx 619x1650824x13 u2d2ba 60.243.39.239,10.248.198.122 /s/5d0e483457321a19520ba354594490dd-T/y9cbts/811002/ffa65894c3a7c6d1188f791c3021a176/90731b8d9013a12d40cddfe8542fd6a1/_/download/contextbatch/js/gh-rapid-work,atl.general,jira.project.sidebar,jira.general,atl.global,jira.global,com.atlassian.jira.projects.sidebar.init,greenhopper-rapid-non-gadget,-_super/batch.js [webresource] error in `Content.writeTo` for com.riadalabs.jira.plugins.insight:rlabs-jira-integration-general/rlabs-panel-general.js
java.lang.RuntimeException: Cannot read resource includes/js/panel/panel-general.js
at com.atlassian.plugin.webresource.impl.snapshot.Resource$1.writeTo(Resource.java:204)
at com.atlassian.plugin.webresource.transformer.CompileTimeTransformer$1.writeTo(CompileTimeTransformer.java:59)
...
2021-03-22 10:21:12,464+0300 http-nio-8080-exec-20 WARN anonymous 620x1651576x31 18qv35e 84.44.14.226,10.248.198.122 /s/12da6e398fc6636920fb500ab98dc098-T/y9cbts/811002/ffa65894c3a7c6d1188f791c3021a176/7a1f0dcfa116a5b8436ffc0cb3f4b1e2/_/download/contextbatch/js/atl.general,jira.general,atl.global,jira.global,-_super/batch.js [webresource] error in `Content.writeTo` for com.riadalabs.jira.plugins.insight:rlabs-jira-integration-general/rlabs-panel-general.soy.js
java.lang.RuntimeException: Cannot read resource includes/js/panel/panel-general.soy
at com.atlassian.plugin.webresource.impl.snapshot.Resource$1.writeTo(Resource.java:204)
at com.atlassian.plugin.webresource.transformer.CompileTimeTransformer$1.writeTo(CompileTimeTransformer.java:59)
[...]
Environment
Case 1:
- Insight AM v8.7.4; or
Case 2:
- Insight bundled v9.0.5 (present in Jira Service Management 4.16.x)
Steps to Reproduce
Case 1:
- Install Insight v8.7.4
- Click on any options "Insight" dropdown menu
Case 2:
- Install Jira Service Management 4.16.x
Expected Results
Static resources in Jira's batch.js is correctly populated with Insight js resources
Actual Results
RuntimeExceptions as mentioned above
Workaround
Case 1:
- Upgrade to v8.7.6 or above
Case 2:
- Upgrade Jira Service Management to 4.17.x
Notes
- This bug doesn't cause any reported functional error on Insight
- The reason for this bug is these two files panel-general.js and panel-general.soy are missing from v8.7.4 JAR file which is present in v8.7.7:
$ find . -name "*panel-general.soy*" ./includes/js/panel/panel-general.soy $ find . -name "*panel-general.js*" ./includes/js/panel/panel-general.js