Uploaded image for project: 'XWiki Rendering'
  1. XWiki Rendering
  2. XRENDERING-128

Conversion from XWiki 1.0 to 2.0 syntax fails when the line ends with < followed by a word

    Details

    • Similar issues:

      Description

      XWiki 1.0 input content:

      1<2
      

      The exception thrown is:

      java.lang.ArrayIndexOutOfBoundsException: 3
          at org.xwiki.rendering.internal.parser.xwiki10.HTMLFilter.getBeginElement(HTMLFilter.java:475)
          at org.xwiki.rendering.internal.parser.xwiki10.HTMLFilter.getElement(HTMLFilter.java:347)
          at org.xwiki.rendering.internal.parser.xwiki10.HTMLFilter.getHTMLBlock(HTMLFilter.java:311)
          at org.xwiki.rendering.internal.parser.xwiki10.HTMLFilter.filter(HTMLFilter.java:140)
          at org.xwiki.rendering.internal.parser.xwiki10.XWikiParser.xwiki10To20(XWikiParser.java:135)
          at org.xwiki.rendering.internal.parser.xwiki10.XWikiParser.parse(XWikiParser.java:110)
          at com.xpn.xwiki.doc.XWikiDocument.parseContent(XWikiDocument.java:7742)
          at com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:7664)
          at com.xpn.xwiki.doc.XWikiDocument.convertSyntax(XWikiDocument.java:7523)
          at com.xpn.xwiki.doc.XWikiDocument.convertSyntax(XWikiDocument.java:7507)
          at com.xpn.xwiki.api.Document.convertSyntax(Document.java:2487)
          ...
      

        Attachments

          Activity

            People

            • Assignee:
              tmortagne Thomas Mortagne
              Reporter:
              mflorea Marius Dumitru Florea
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: