Uploaded image for project: 'DokuWiki tools'
  1. DokuWiki tools
  2. DOKUWIKI-24

fromIndex(0) > toIndex(-1) when parsing some dokuwiki content

    XMLWordPrintable

Details

    • Bug
    • Resolution: Solved By
    • Critical
    • None
    • 1.3.3
    • Syntax
    • None
    • xwiki in docker
    • Unknown

    Description

      Hi there,

      as I am new to XWIKI and the community, I apologize if I do not reproduce all the required information correctly right away!

      Currently we are trying to migrate from DokuWiki to XWIKI.
      For this we created a .tgz from the DokuWiki folder and wanted to import it via the filter streams converter.
      Unfortunately we get the following error:

       fromIndex(0) > toIndex(-1) class java.lang.IllegalArgumentException: fromIndex(0) > toIndex(-1)
       at java.base/java.util.AbstractList.subListRangeCheck(AbstractList.java:509)
       at java.base/java.util.ArrayList.subList(ArrayList.java:1138)
       at org.xwiki.contrib.dokuwiki.syntax.internal.parser.DokuWikiIterativeParser.processLink(DokuWikiIterativeParser.java:980)
       at org.xwiki.contrib.dokuwiki.syntax.internal.parser.DokuWikiIterativeParser.parseRecursive(DokuWikiIterativeParser.java:507)
       at org.xwiki.contrib.dokuwiki.syntax.internal.parser.DokuWikiIterativeParser.parse(DokuWikiIterativeParser.java:101)
       at org.xwiki.contrib.dokuwiki.syntax.internal.parser.DokuWikiStreamParser.parse(DokuWikiStreamParser.java:84)
       at org.xwiki.contrib.dokuwiki.text.internal.input.DokuWikiInputFilterStream.parseContent(DokuWikiInputFilterStream.java:392)
       at org.xwiki.contrib.dokuwiki.text.internal.input.DokuWikiInputFilterStream.readPageRevision(DokuWikiInputFilterStream.java:372)
       at org.xwiki.contrib.dokuwiki.text.internal.input.DokuWikiInputFilterStream.readDocument(DokuWikiInputFilterStream.java:309)
       at org.xwiki.contrib.dokuwiki.text.internal.input.DokuWikiInputFilterStream.readDocument(DokuWikiInputFilterStream.java:275)
       at org.xwiki.contrib.dokuwiki.text.internal.input.DokuWikiInputFilterStream.readDocument(DokuWikiInputFilterStream.java:275)
       at org.xwiki.contrib.dokuwiki.text.internal.input.DokuWikiInputFilterStream.readDataStream(DokuWikiInputFilterStream.java:224)
       at org.xwiki.contrib.dokuwiki.text.internal.input.DokuWikiInputFilterStream.read(DokuWikiInputFilterStream.java:164)
       at org.xwiki.contrib.dokuwiki.text.internal.input.DokuWikiInputFilterStream.read(DokuWikiInputFilterStream.java:144)
       at org.xwiki.contrib.dokuwiki.text.internal.input.DokuWikiInputFilterStream.read(DokuWikiInputFilterStream.java:74)
       at org.xwiki.filter.input.AbstractBeanInputFilterStream.read(AbstractBeanInputFilterStream.java:79)
       at org.xwiki.filter.internal.job.FilterStreamConverterJob.runInternal(FilterStreamConverterJob.java:97)
       at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:243) at org.xwiki.job.AbstractJob.run(AbstractJob.java:220)
       at org.xwiki.filter.script.internal.ScriptFilterStreamConverterJob.run(ScriptFilterStreamConverterJob.java:75)
       at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
       at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
       at java.base/java.lang.Thread.run(Thread.java:829)
      

      Let me know if additional infos are needed.

      Not sure to provide the import file, as there is confidential data inside 

      Maybe anyone can help me out to figure out a way how to describe the way to reproducing the error, as I'm very new to the topic.

       

      Attachments

        Issue Links

          Activity

            People

              MichaelHamann Michael Hamann
              reutli Michael Reutlinger
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: