Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-3620

Syntax conversion does not treat escaped syntax characters correctly.

    XMLWordPrintable

Details

    • syntax conversion String index out of range
    • Unit

    Description

      Syntax conversion does not treat escaped syntax characters correctly, for example;

      Create an XWiki 1.0 syntaxc page with this text;

      Here are some \[square brackets\]

      Now change the syntaxId to 2.0 and hit ok to produce the following text;

      Here are some \[[square brackets\]]

      Now try to save or preview, and it fails and throws

      Exception: String index out of range

      I think the Exception is thrown in the course executing org.xwiki.rendering.block.AbstractFatherBlock.traverse() and it is trying to treat the text as a

      org.xwiki.rendering.block.LinkBlock

      with the actual exception being thrown in

      org.xwiki.rendering.internal.renderer.DefaultLinkLabelGenerator.generate()

      at line 59.

      Chris

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            cmp Chris Phelan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: