Details
-
Bug
-
Resolution: Fixed
-
Low
-
5.8.4, 5.8.5, 5.8.9, 5.8.10
Description
Summary
Space Export to PDF or Word fails when a Page in the space includes a Contributors macro
Steps to reproduce
- Include a 'Contributors' macro in a Confluence page;
- save the page and export the Space to PDF or word;
Expected result: 'Contributors' macro content is displayed in the PDF or word export as it is in the page view.
Actual result: the page content is replaced with an error:Error: RuntimeException occurred while performing an XHTML storage transformation (In template Confluence.Templates.User.userLinkUrl:
When evaluating "contextPath()": Error while computing function "contextPath()": null)
Errors are thrown in Confluence logs:
2015-04-01 12:26:03.834140500 2015-04-01 12:26:03,831 ERROR [Long running task: PDF Space Export] [content.render.xhtml.DefaultRenderer] render Error rendering content for view: RuntimeException occurred while performing an XHTML storage transformation (In template Confluence.Templates.User.userLinkUrl: When evaluating "contextPath()": Error while computing function "contextPath()": null) 2015-04-01 12:26:03.834144500 -- referer: https://mako.jira-dev.com/wiki/spaces/flyingpdf/flyingpdf.action?key=CHQImport | url: /wiki/spaces/flyingpdf/doflyingpdf.action | userName: dwierzbicka | action: doflyingpdf 2015-04-01 12:26:03.834158500 com.atlassian.confluence.content.render.xhtml.XhtmlException: RuntimeException occurred while performing an XHTML storage transformation (In template Confluence.Templates.User.userLinkUrl: When evaluating "contextPath()": Error while computing function "contextPath()": null)
2015-04-01 12:26:03.834282500 Caused by: com.google.template.soy.tofu.SoyTofuException: In template Confluence.Templates.User.userLinkUrl: When evaluating "contextPath()": Error while computing function "contextPath()": null
See full logs: space-export.txt
Note: this doesn't affect the PDF export of an individual page.
Workaround
- remove the 'Contributors' macro from the pages before exporting them;
- use the individual page export.
Attachments
Issue Links
- is related to
-
CONFSERVER-39013 Confluence Activity Stream and Recommend Updates email shows RuntimeException: Error while computing function "contextPath()": null
- Closed
-
CONFSERVER-35326 Task Report Macro fails to render when Exporting a Space to PDF
- Closed
-
JST-134436 Loading...
- relates to
-
CONFSERVER-36925 Content Report Table macro not rendered in space PDF export
- Closed
-
CONFSERVER-39207 Ignore or diagnose errors / failed attempts to export the whole space as PDF
- Closed
- mentioned in
-
Page Loading...