-
Bug
-
Resolution: Fixed
-
High
-
None
-
5.8.6, 5.9.1-OD-60-234
NOTE: This bug report is for Confluence Server. Using Confluence Cloud? See the corresponding bug report.
Summary
If a JIRA Project is linked to a Confluence space and the JIRA Project Key is mentioned in a Confluence page, this page will be shown in the Activity Stream. If the page shown on the activity stream contains the Page Properties Report macro, it will instead display an error message.
Steps to Reproduce
- Create a JIRA Project and Confluence Space
- Use the Project Links to link the two together
- Create a Confluence page with the a Page Properties Macro
- Give this page the Label 'example'
- Create a new Confluence page and add a "Page Properties Report" referencing the Label 'example'
- Also add the JIRA Project key to the page body.
- Save the page
- Create an Issue in the JIRA project and open the 'Activity Tab'
Expected Results
Your page will be shown normally
Actual Results
Instead of the page rendered the activity tab will show the following:
Error: RuntimeException occurred while performing an XHTML storage transformation (In template Confluence.Templates.Macro.MasterDetail.contentLink2: When evaluating "contextPath()": Error while computing function "contextPath()": null)
The Confluence logs show the full error:
com.atlassian.confluence.content.render.xhtml.XhtmlException: RuntimeException occurred while performing an XHTML storage transformation (In template Confluence.Templates.Macro.MasterDetail.contentLink2: When evaluating "contextPath()": Error while computing function "contextPath()": null) @4000000055b0bb120346302c at com.atlassian.confluence.content.render.xhtml.storage.StorageXhtmlTransformer.transform(StorageXhtmlTransformer.java:65) @4000000055b0bb1203463414 at com.atlassian.confluence.content.render.xhtml.TransformerChain.transform(TransformerChain.java:38) @4000000055b0bb1203463be4 at com.atlassian.confluence.content.render.xhtml.TransformerChain.transform(TransformerChain.java:38) @4000000055b0bb120346479c at com.atlassian.confluence.content.render.xhtml.PluggableTransformerChain.transform(PluggableTransformerChain.java:43) @4000000055b0bb1203464b84 at com.atlassian.confluence.content.render.xhtml.DefaultRenderer.render(DefaultRenderer.java:114) @4000000055b0bb1203464f6c at com.atlassian.confluence.content.render.xhtml.DeviceTypeAwareRenderer.render(DeviceTypeAwareRenderer.java:56) @4000000055b0bb1203465354 at sun.reflect.GeneratedMethodAccessor721.invoke(Unknown Source) @4000000055b0bb120346573c at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) @4000000055b0bb120346573c at java.lang.reflect.Method.invoke(Method.java:483) ... @4000000055b0bb1203486a7c Caused by: com.google.template.soy.tofu.SoyTofuException: In template Confluence.Templates.Macro.MasterDetail.contentLink2: When evaluating "contextPath()": Error while computing function "contextPath()": null @4000000055b0bb1203487634 at com.google.template.soy.tofu.internal.BaseTofu.renderMainHelper(BaseTofu.java:341) @4000000055b0bb1203487634 at com.google.template.soy.tofu.internal.BaseTofu.renderMain(BaseTofu.java:300) @4000000055b0bb1203487a1c at com.google.template.soy.tofu.internal.BaseTofu.access$100(BaseTofu.java:56) @4000000055b0bb1203488da4 at com.google.template.soy.tofu.internal.BaseTofu$RendererImpl.render(BaseTofu.java:427) @4000000055b0bb1203488da4 at com.atlassian.soy.impl.DefaultSoyManager.render(DefaultSoyManager.java:118) @4000000055b0bb120348918c at com.atlassian.soy.impl.DefaultSoyTemplateRenderer.render(DefaultSoyTemplateRenderer.java:52) @4000000055b0bb120348918c at sun.reflect.GeneratedMethodAccessor796.invoke(Unknown Source) @4000000055b0bb120348a8fc at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) @4000000055b0bb120348a8fc at java.lang.reflect.Method.invoke(Method.java:483)
Notes
Because of STRM-2274 any page referencing the Project key will be shown inside the Activity tab of each issue in the project.
Workaround
No workaround at the moment.
- relates to
-
CONFCLOUD-38577 Page Properties Report Macro causes XHTML storage transformation error in JIRA
-
- Closed
-