Summary

      When creating a new page in Confluence 5.10.8 by choosing "Import from Word", certain content shows up in the page as <ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="55da6a31-0442-4c6e-bd02-5f890e7d4883"> <ac:plain-text-body><![CDATA[ and everything in the table shifts over one column to the right. This same document imports fine in 5.8.18.

      Environment

      Confluence 5.10.8 

      Steps to Reproduce

      1. In Confluence 5.10.8,or 6.0.5, create a new test page.
      2. Edit the page and choose "Import Word Document." Import the Word document Final Import File.docx. (This file was created in Word 2013 in Windows 7 and attached to this ticket)
      3. Choose Replace for Where to import and Replace for Title conflicts. Choose Level 1 headings for Split by heading and choose Import.
      4. Go to the second page created, ESA.0002, and the second table. The second row has <ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="55da6a31-0442-4c6e-bd02-5f890e7d4883"> <ac:plain-text-body><![CDATA[.

      Expected Results

      I expect the Word document to create the pages with the proper tables and data in each cell.

      Actual Results

      Certain content shows up in cells as <ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="55da6a31-0442-4c6e-bd02-5f890e7d4883"> <ac:plain-text-body><![CDATA[ and everything in the table shifts over one column to the right.

      The logs show:

      {code:borderStyle=solid}2017-03-07 16:04:40,070 INFO [http-nio-8080-exec-9] [render.xhtml.migration.ErrorReportingV2Renderer] render Unable to render content on page null:null
      Wrapping content in unmigrated wiki markup macro due to system error: String index out of range: -1{code}

      Notes

      • Copied/pasted the document into a new Word 2011 for Mac document - same issue.
      • Copied pasted the content of the table affected into a new table - issue did not happen.
      • Removed content in cell before and after the error - same issue.
      • Removed all headers in the table - same issue.
      • Removed all special characters (colons, semi-colons, #) - same issue.
      • Chose Edit after the import completed, there are no macros on the page except an anchor macro, removed the anchor macro - same issue.
      • Tried running the wikiToXhtmlMigrationUpgradeTask, went back to the page and still see the same error.

      Workaround

      There is no workaround. When the issue occurs if you edit the page and delete the error in the cell, the remaining cells that shifted one to the right do not move back and that is why the bug is marked as major. Please see see if you need access to the Word document to reproduce the issue.

            [CONFSERVER-51645] Importing From Word Does not Properly Convert to XHTML

            Tamas Bela added a comment -

            I can't believe after 3 years Atlassian is still fully ignoring the issue. (hitting Confluence 7.15 too)

            Tamas Bela added a comment - I can't believe after 3 years Atlassian is still fully ignoring the issue. (hitting Confluence 7.15 too)

            This is a needed and necessary function.

            I have course material I want to re-use for my Confluence page, but can't because the import looks terrible.

            Attached is a basic test file. Of course it needs to be extended.

            James Garrett added a comment - This is a needed and necessary function. I have course material I want to re-use for my Confluence page, but can't because the import looks terrible. Attached is a basic test file. Of course it needs to be extended.

            Deniz Altin added a comment - - edited

            Also observing this issue. It's mind-boggling how long this issue has been in existence without Atlassian doing anything about it.

            Deniz Altin added a comment - - edited Also observing this issue. It's mind-boggling how long this issue has been in existence without Atlassian doing anything about it.

            Impacting 7.7.4 as well.

            Charles Lin added a comment - Impacting 7.7.4 as well.

            Impacting 7.9.1, also critical for us. We have hundreds if not thousands of word documents to upload. Fixing each is tedious.

            Philip Oetinger added a comment - Impacting 7.9.1, also critical for us. We have hundreds if not thousands of word documents to upload. Fixing each is tedious.

            Impacting 6.15.2. This is a critical function for our organization. Is there any plans to fix this bug?

            Cory Strope added a comment - Impacting 6.15.2. This is a critical function for our organization. Is there any plans to fix this bug?

            Impacting 7.0.3 as well. Is there a progress update?

            William Hsu added a comment - Impacting 7.0.3 as well. Is there a progress update?

            Is this still broken? We're running into this problem too.  Are there any scripts to work around this problem?

            Matt Coarr added a comment - Is this still broken? We're running into this problem too.  Are there any scripts to work around this problem?

            DES Tools added a comment -

            Impacting 6.13.4 as well

            DES Tools added a comment - Impacting 6.13.4 as well

            repeated in 6.12.0 

            steps to reproduce for me are:

            create table in excel (i formatted the populated rows with "all borders").

            copy/paste table into ms-word

            save

            import to confluence

            and then tags "ac:structured-macro ac:name" appear in confluence page.

            Colin Fletcher added a comment - repeated in 6.12.0  steps to reproduce for me are: create table in excel (i formatted the populated rows with "all borders"). copy/paste table into ms-word save import to confluence and then tags "ac:structured-macro ac:name" appear in confluence page.

              Unassigned Unassigned
              tthompson@atlassian.com Tracy T (Inactive)
              Affected customers:
              46 This affects my team
              Watchers:
              51 Start watching this issue

                Created:
                Updated: