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

    XMLWordPrintable

Details

    Description

      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.

      Attachments

        1. error.png
          81 kB
          Rodolfo Bortolin
        2. space-export.txt
          28 kB
          Dobroslawa Wierzbicka

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dwierzbicka Dobroslawa Wierzbicka (Inactive)
              Votes:
              16 Vote for this issue
              Watchers:
              25 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: