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

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.2 M2
    • Fix Version/s: 3.1.1, 3.2 M3
    • Component/s: Syntax - xwiki/1.0
    • Labels:
      None
    • Similar issues:
      XRENDERING-131Quote macro with aparameter break XWiki Syntax 1.0 to XWiki Syntax 2.0
      XRENDERING-98Make empty lines at beginning and end of content significant for XWiki Syntax 2.1
      XRENDERING-64Print new lines between start and end of embedded document in XWiki Syntax Renderer
      XRENDERING-205Add support for Metadata Syntax different than the Syntax being tested in the CTS
      XRENDERING-94Add configuration to be able to enable/disable specific features of the 1.0->2.0 converter
      XRENDERING-5List items that contain sub-items followed by text are not rendered properly
      XRENDERING-298Footnote Macro uses XWiki 2.0 Syntax unless used with Put Footnotes Macro
      XRENDERING-160XHTML to XWiki converter fails to convert ordered list
      XRENDERING-167Support a syntax for skipping new lines
      XRENDERING-178Markdown parsing error when using two spaces at end of line

      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)
          ...
      

        Activity

        Hide
        Thomas Mortagne added a comment -

        found another failing use case

        Show
        Thomas Mortagne added a comment - found another failing use case

          People

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

            Dates

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