Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-53710

Export to Word fails if there is a JIRA issue link from an instance with application links

    XMLWordPrintable

Details

    Description

      Summary

      When selecting “Export to Word” on a page with a link to a JIRA issue from a Server instance with an application link, the process will fail and throw a 500 error.

      Environment

      • Confluence Cloud instance with an application link to a JIRA Server instance.

      Steps to Reproduce

      In a Confluence Cloud instance with an application link to a JIRA instance:

      1. Create a new page
      2. Insert a link to a JIRA issue from your JIRA instance
      3. Click save
      4. In the menu dropdown, select Export to Word

      Expected Results

      The Word file downloads to the browser.

      Actual Results

      Depending on your browser, you will see different results:
      In Chrome you will see message that says the URL could not be reached.
      In Firefox, you will see "This site can’t be reached"
      The below exception is thrown in the Confluence log file:

      ERROR [http-bio-2010-exec-44] [[Catalina].[localhost].[/wiki].[exportword]] log Servlet.service() for servlet [exportword] in context with path [/wiki] threw exception
      2016-04-06 09:37:28.570520500 java.lang.NullPointerException
      2016-04-06 09:37:28.570520500 	at com.atlassian.plugin.webresource.impl.http.Controller.handleNotFoundRedirectAndNotModified(Controller.java:269)
      2016-04-06 09:37:28.570521500 	at com.atlassian.plugin.webresource.impl.http.Controller.serveResource(Controller.java:218)
      2016-04-06 09:37:28.570536500 	at com.atlassian.plugin.webresource.impl.http.Controller.serveResource(Controller.java:61)
      2016-04-06 09:37:28.570536500 	at com.atlassian.plugin.webresource.impl.http.Router$2.apply(Router.java:49)
      2016-04-06 09:37:28.570537500 	at com.atlassian.plugin.webresource.impl.http.Router$2.apply(Router.java:46)
      2016-04-06 09:37:28.570537500 	at com.atlassian.plugin.webresource.impl.support.http.BaseRouter.callHandler(BaseRouter.java:193)
      2016-04-06 09:37:28.570546500 	at com.atlassian.plugin.webresource.impl.support.http.BaseRouter.dispatch(BaseRouter.java:163)
      2016-04-06 09:37:28.570546500 	at com.atlassian.plugin.webresource.PluginResourceLocatorImpl.getDownloadableResource(PluginResourceLocatorImpl.java:214)
      

      Workaround

      Remove the link to the JIRA issue and try the export again.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rfuerst Rachel Fuerst (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: