Word import on a new page creation fails

XMLWordPrintable

    • 1
    • Minor

      Issue Summary

      There are two ways to import a Docx file into Confluence

      • Creating a new page and then selecting the Import in the right panel (Word document (.docx) does not work
      • Selecting the Import from “More actions” → Advanced details → Import Word Document works fine

      Observations indicate that some documents which were successful via the second method are failing for the first method.

      Steps to Reproduce

      Create a new page and then select the Import in the right panel (Word document (.docx) does not work

      Expected Results

      Should have been successful

      Actual Results

      Error is thrown after a little progress

      Spunk logs indicated the below:

      message: Error computing conversion resources; Error converting ADF to storage format

       class: [ [-]
             com.atlassian.confluence.api.service.exceptions.BadRequestException
             com.atlassian.confluence.content.render.xhtml.XhtmlException
             com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException
           ]
           stack: com.atlassian.confluence.api.service.exceptions.BadRequestException: Error converting ADF to storage format
      
      Caused by: com.atlassian.confluence.content.render.xhtml.XhtmlException: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "text" (class com.atlassian.confluence.content.render.xhtml.atlassiandocformat.adf.model.TerminalNode), not marked as ignorable (2 known properties: "type", "attrs"])
       at [Source: (String)"{"type":"doc","version":1,"content":[{"type":"heading","attrs":{"level":1},"content":[{"type":"inlineExtension","attrs":{"extensionType":"com.atlassian.confluence.macro.core","extensionKey":"anchor","parameters":{"macroParams":{"":{"value":"_Hlk38384082"}},"macroMetadata":{"schemaVersion":{"value":"1"},"title":"Anchor"}}}},{"type":"text","text":"NUTZUNG VON CITRIX AUF iPHONE/iPAD"}]},{"type":"paragraph","content":[]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragrap"[truncated 21995 chars]; line: 1, column: 3491] (through reference chain: com.atlassian.confluence.content.render.xhtml.atlassiandocformat.adf.model.Document["content"]->java.util.ArrayList[8]->com.atlassian.confluence.content.render.xhtml.atlassiandocformat.adf.model.ContentNode["content"]->java.util.ArrayList[23]->com.atlassian.confluence.content.render.xhtml.atlassiandocformat.adf.model.TerminalNode["text"])
      com.atlassian.confluence.content.render.xhtml.atlassiandocformat.ADFToStorageXhtmlTransformer.convert(ADFToStorageXhtmlTransformer.java:107)
      com.atlassian.confluence.content.render.xhtml.DefaultFormatConverter.convertAtlasDocFormatToStorageFormat(DefaultFormatConverter.java:251)
      ... 358 more
      
      Caused by: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "text" (class com.atlassian.confluence.content.render.xhtml.atlassiandocformat.adf.model.TerminalNode), not marked as ignorable (2 known properties: "type", "attrs"])
       at [Source: (String)"{"type":"doc","version":1,"content":[{"type":"heading","attrs":{"level":1},"content":[{"type":"inlineExtension","attrs":
      

      Workaround

      • Open an existing empty page.
      • Select the Import from “More actions” → Advanced details → Import Word 

            Assignee:
            Maksym Strus
            Reporter:
            Bharath Kumar
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: