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

When importing a word document, header order is not respected

      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)

        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

            [CONFSERVER-52595] When importing a word document, header order is not respected

            set-jac-bot made changes -

            Quan Pham added a comment -

            A fix for this issue is available to Server and Data Center customers in Confluence 6.13.8
            Upgrade now or check out the Release Notes to see what other issues are resolved.

            If you're running the Confluence 6.13 Enterprise release, a fix for this issue is now available in Confluence 6.13.8, which you can find in the Download Archives.

            Quan Pham added a comment - A fix for this issue is available to Server and Data Center customers in Confluence 6.13.8 Upgrade now or check out the Release Notes to see what other issues are resolved. If you're running the Confluence 6.13 Enterprise release, a fix for this issue is now available in Confluence 6.13.8, which you can find in the Download Archives .
            Quan Pham made changes -
            Fix Version/s New: 6.13.8 [ 89193 ]

            Quan Pham added a comment -

            A fix for this issue is available to Server and Data Center customers in Confluence 6.13.7
            Upgrade now or check out the Release Notes to see what other issues are resolved.

            If you're running the Confluence 6.13 Enterprise release, a fix for this issue is now available in Confluence 6.13.7, which you can find in the Download Archives.

            Quan Pham added a comment - A fix for this issue is available to Server and Data Center customers in Confluence 6.13.7 Upgrade now or check out the Release Notes to see what other issues are resolved. If you're running the Confluence 6.13 Enterprise release, a fix for this issue is now available in Confluence 6.13.7, which you can find in the Download Archives .
            Said made changes -
            Fix Version/s New: 6.13.7 [ 87890 ]
            Said made changes -
            Link New: This issue relates to CONFSRVDEV-11596 [ CONFSRVDEV-11596 ]
            Said made changes -
            Link New: This issue is related to CONFSRVDEV-10523 [ CONFSRVDEV-10523 ]
            Said made changes -
            Remote Link New: This issue links to "PSR-265 (Bulldog)" [ 443171 ]

            Quan Pham added a comment - - edited

            A fix for this issue is available to Server and Data Center customers in Confluence 6.10.3
            Upgrade now or check out the Release Notes to see what other issues are resolved.

            If you're running the Confluence 6.6 Enterprise release, a fix for this issue is now available in Confluence 6.6.14, which you can find in the Download Archives.

            Quan Pham added a comment - - edited A fix for this issue is available to Server and Data Center customers in Confluence 6.10.3 Upgrade now or check out the Release Notes to see what other issues are resolved. If you're running the Confluence 6.6 Enterprise release, a fix for this issue is now available in Confluence 6.6.14, which you can find in the Download Archives .
            Quan Pham made changes -
            Fix Version/s New: 6.10.3 [ 86394 ]

              oshen@atlassian.com Oliver Shen
              bboyle@atlassian.com BrianB (Inactive)
              Affected customers:
              45 This affects my team
              Watchers:
              53 Start watching this issue

                Created:
                Updated:
                Resolved: