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)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 4.4
    • Fix Version/s: 4.4.1
    • Component/s: Search - Generic
    • Labels:
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Similar issues:

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: