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

Unable to Import Word Document to Confluence

XMLWordPrintable

      Summary

      Users are unable to import Word Documents to be used as Confluence Pages in their instance

      Environment

      • 5.9.0-OD-59-126

      Steps to Reproduce

      1. Create a page in Confluence or go to an existing page (you want to view the page, not edit it).
      2. Choose > Import Word Document
      3. Choose Browse and locate the Word document you want to import then choose Next.
        The import document options appear.
      4. Enter a title for the new page
      5. Choose where you want to import the file - used Import as a new page in the current space
      6. Choose how to handle title conflicts - used Rename imported pages if page name already exists
      7. Choose whether to create a single page or multiple pages based on the heading styles in the file (this option is only available if the file contains heading styles). - N/A as example document did not contain heading styles
      8. Click Import.
      • Other import options also generate the NPE when attempting the Word Doc Import
      • Both Word 91-2004 (.doc) and Word Document (.docx) file types generate the NPE

      Expected Results

      Page is imported successfully

      Actual Results

      NPE is generated and displayed on page:

      Cause
      java.lang.reflect.InvocationTargetException
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      caused by: java.lang.NoSuchFieldError: pageManager
          at com.benryan.webwork.WordImportAction.resolveTitleConflicts(WordImportAction.java:637)
      

      Notes

      It appears if the Word Document is attached and the Office Word Macro is utilized, the document can be displayed

      Workaround

      None

        1. NPE.png
          NPE.png
          169 kB
        2. Bacon.docx
          134 kB
        3. Captura de tela 2015-07-15 08.53.19.png
          Captura de tela 2015-07-15 08.53.19.png
          160 kB
        4. Captura de tela 2015-07-21 10.20.08.png
          Captura de tela 2015-07-21 10.20.08.png
          138 kB

              merickson Matthew Erickson
              scranford Shawn C
              Votes:
              10 Vote for this issue
              Watchers:
              43 Start watching this issue

                Created:
                Updated:
                Resolved: