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

When importing a word document, header order is not respected

    XMLWordPrintable

Details

    Description

      Summary

      When importing a word document and splitting by headers, the page tree that gets created is alphabetized. What we are expecting to happen is that the page tree would be in the same order in which the headers appear in the document.

      To reproduce, simply import a word document which can be split by multiple headers that do not appear in alphabetical order within the document. Once the document is imported, notice that the page tree is alphabetical in order as opposed to their order within the document.

      I have attached an example Word document to test with.

      Steps to Reproduce

      1. Import Brian.docx to Confluence and use Split by heading functionality.
      2. Observe pages tree generated in sidebar.

      Expected Results

      1. Page tree will be ordered properly (as in document).

      Actual Results

      1. Pages are sorted alphabetically.

      Notes

      The issue is not reproducible with 5.10.8.
      It looks like problem is introduced in Confluence version 6.0.6 and plugin OfficeConnector-5.0.3.jar. The issue is not present in plugin 5.0.2 and Confluence 6.0.5.

      Workaround

      There are 2 workaround at this point:

      1. Manually sort and reorder pages.
      2. Downgrade the plugin:
        • Stop confluence
        • Find the folder <confluence-install>/confluence/WEB-INF/atlassian-bundled-plugins/ on production
        • Backup and move OfficeConnector-5.x.x.jar from this folder
        • Download Confluence 5.10.8 zip.
        • Extract from the same folder OfficeConnector-5.0.2.jar. and copy it to the same folder on production.
        • Remove the following folders:
          • <confluence-home>/bundled-plugins
          • <confluence-home>/plugins-cache
          • <confluence-home>/plugins-osgi-cache
          • <confluence-home>/plugins-temp
          • <confluence-home>/bundled-plugins_language
        • Start Confluence

      Note: The work around (2) has been confirmed to work up up to Confluence 6.5.2 but does not work for Confluence 6.7.1 (Confluence 6.7.1 will crash when importing Word Documents when using the older OfficeConnector-5.0.2.jar)

      Attachments

        1. Brian.docx
          27 kB
        2. image-2019-04-02-16-35-23-237.png
          image-2019-04-02-16-35-23-237.png
          157 kB
        3. Test Lvl3 Headers.docx
          6 kB
        4. Test Nested Headers.docx
          6 kB
        5. tree.png
          tree.png
          24 kB

        Issue Links

          Activity

            People

              oshen@atlassian.com Oliver Shen
              bboyle@atlassian.com BrianB
              Votes:
              45 Vote for this issue
              Watchers:
              53 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: