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

Word document import fails with IndexOutOfBounds exception when splitting by headers

    XMLWordPrintable

Details

    Description

      NOTE: This bug report is for Confluence Server. Using Confluence Cloud? See the corresponding bug report.

      When importing a word document and selecting "split by X headings", either L1 or L2, the import fails with the following (truncated) stacktrace:

      @400000005089a378209e6144 2012-10-25 20:39:10,543 ERROR [TP-Processor12] [atlassian.confluence.servlet.ConfluenceServletDispatcher] sendError Could not execute action
      @400000005089a378209e6cfc  -- url: /wiki/pages/worddav/doimportword.action | userName: sysadmin | referer: https://tdavis.jira-dev.com/wiki/pages/worddav/importword.action
      @400000005089a378209e74cc java.lang.IndexOutOfBoundsException: Index: 61, Size: 61
      @400000005089a378209e74cc       at java.util.ArrayList.RangeCheck(ArrayList.java:547)
      @400000005089a378209e78b4       at java.util.ArrayList.get(ArrayList.java:322)
      @400000005089a37820a08fdc       at com.benryan.dom.DefaultSplitImportContext.getNextNode(DefaultSplitImportContext.java:52)
      @400000005089a37820a093c4       at com.benryan.dom.DefaultSplitImportContext.splitPage(DefaultSplitImportContext.java:62)
      @400000005089a37820a097ac       at com.benryan.dom.DocSplitter.handleParagraphStyle(DocSplitter.java:82)
      @400000005089a37820a09b94       at com.benryan.dom.Doc2Wiki.visitParagraphStart(Doc2Wiki.java:472)
      @400000005089a37820a09f7c       at com.aspose.words.Paragraph.a(Unknown Source)
      @400000005089a37820a0e1e4       at com.aspose.words.CompositeNode.acceptCore(Unknown Source)
      @400000005089a37820a0e1e4       at com.aspose.words.Paragraph.accept(Unknown Source)
      @400000005089a37820a0e5cc       at com.aspose.words.CompositeNode.acceptChildren(Unknown Source)
      @400000005089a37820a0e9b4       at com.aspose.words.CompositeNode.acceptCore(Unknown Source)
      ...
      

      Attachments

        Issue Links

          Activity

            People

              shaffenden Steve Haffenden (Inactive)
              tdavis TylerA
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: