Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-37112

'Error: RuntimeException' in a Space Export when a Page includes a Contributors macro

      Summary

      Space Export to PDF or Word fails when a Page in the space includes a Contributors macro

      Steps to reproduce
      1. Include a 'Contributors' macro in a Confluence page;
      2. 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.

        1. error.png
          error.png
          81 kB
        2. space-export.txt
          28 kB

            [CONFSERVER-37112] 'Error: RuntimeException' in a Space Export when a Page includes a Contributors macro

            @Minh Tran: I see this runtime error when exporting to PDF a page with a Page Properties Report macro. Does 5.8.16 fix this issue too?

            Melanie Albrecht added a comment - @Minh Tran: I see this runtime error when exporting to PDF a page with a Page Properties Report macro. Does 5.8.16 fix this issue too?

            Minh Tran added a comment -

            craig.marshall This is fixed in Confluence 5.8.16

            Minh Tran added a comment - craig.marshall This is fixed in Confluence 5.8.16

            Can anyone confirm is this issue is fixed for the newsletter scenario?

            marshall_craig added a comment - Can anyone confirm is this issue is fixed for the newsletter scenario?

            PJ added a comment -

            Same problem here. Any plans?

            PJ added a comment - Same problem here. Any plans?

            We're seeing the same issue...any ETA for a fix?

            Technical Administrator added a comment - We're seeing the same issue...any ETA for a fix?

            Also happens on Confluence 5.8.10 both when exporting to PDF or HTML

            Victor Pana added a comment - Also happens on Confluence 5.8.10 both when exporting to PDF or HTML

            pWestrich added a comment - - edited

            This error does also appear in the Activitiy Stream (even on different instances, i.e. on JIRA server)

            Our Confluence Version is: 5.8.5

            pWestrich added a comment - - edited This error does also appear in the Activitiy Stream (even on different instances, i.e. on JIRA server) Our Confluence Version is: 5.8.5

            I'm having the same error.png

            but for the newsletter, should I raise another issue for this?

            Best Reggards,

            Rodolfo Bortolin

            Rodolfo Bortolin added a comment - I'm having the same error.png but for the newsletter , should I raise another issue for this? Best Reggards, Rodolfo Bortolin

              Unassigned Unassigned
              dwierzbicka Dobroslawa Wierzbicka (Inactive)
              Affected customers:
              16 This affects my team
              Watchers:
              25 Start watching this issue

                Created:
                Updated:
                Resolved: