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

Markdown syntax not working anymore (Lucene Search is drawing ASM 3.1 instead of 4.x)

    XMLWordPrintable

Details

    • Unknown
    • N/A

    Description

      The error is:

      Caused by: java.lang.IncompatibleClassChangeError: org/parboiled/transform/ParserClassNode
      	at org.parboiled.transform.ParserTransformer.extendParserClass(ParserTransformer.java:43)
      	at org.parboiled.transform.ParserTransformer.transformParser(ParserTransformer.java:38)
      	at org.parboiled.Parboiled.createParser(Parboiled.java:54)
      	at org.pegdown.PegDownProcessor.<init>(PegDownProcessor.java:66)
      	at org.pegdown.PegDownProcessor.<init>(PegDownProcessor.java:57)
      	at org.xwiki.rendering.internal.parser.markdown.MarkdownParser.parse(MarkdownParser.java:75)
      

      And the problem is that in WEB-INF/lib we have both ASM 4.0 and ASM 3.1 listed.

      Analysis of the problem:

      • Our Markdown parser uses pegdown which uses parboiled which requires ASM 4.0
      • Our Lucene search uses Tika Parsers which uses ASM 3.1
      • ASM 4.0 is not backward compatible with ASM 3.1
      • Tika Parsers uses ASM to parse class files. In term of XWiki features this means the ability to index class files attached to wiki pages

      Attachments

        Issue Links

          Activity

            People

              vmassol Vincent Massol
              vmassol Vincent Massol
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: