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

Cannot split word document by headings on import

    XMLWordPrintable

Details

    Description

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

      When importing the attached word document using the Office Connector, an error is returned (see attached).

      Log from another issue:
      @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)
      ...
      
      Following appears in the atlassian-confluence.log:
      2014-09-19 09:56:20,800 ERROR [http-bio-9090-exec-2] [atlassian.confluence.servlet.ConfluenceServletDispatcher] sendError Could not execute action
       -- url: /pages/worddav/doimportword.action | userName: admin | referer: http://localhost:9090/pages/worddav/importword.action
      java.lang.IndexOutOfBoundsException: Index: 63, Size: 63
      	at java.util.ArrayList.rangeCheck(ArrayList.java:635)
      	at java.util.ArrayList.get(ArrayList.java:411)
      	at com.benryan.dom.DefaultSplitImportContext.getNextNode(DefaultSplitImportContext.java:50)
      	at com.benryan.dom.DefaultSplitImportContext.splitPage(DefaultSplitImportContext.java:60)
      	at com.benryan.dom.DocSplitter.handleParagraphStyle(DocSplitter.java:82)
      	at com.benryan.dom.Doc2Wiki.visitParagraphStart(Doc2Wiki.java:502)
      	at com.aspose.words.Paragraph.욨Unknown Source)
      	at com.aspose.words.CompositeNode.acceptCore(Unknown Source)
      .....
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      	at java.lang.Thread.run(Thread.java:744)
      
      Error in the UI:

      Steps to reproduce:
      1. Start importing the attached word document using the "Advanced" button
      2. Attempt to split the document using the first level of headings
      3. An error is immediately thrown

      Attachments

        1. Orthomatic_manual.doc
          237 kB
        2. word.JPG
          word.JPG
          131 kB
        3. WordImportError.pdf
          93 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              aatkins TonyA
              Votes:
              13 Vote for this issue
              Watchers:
              18 Start watching this issue

              Dates

                Created:
                Updated: