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

Java StackOverflowError in code macro when choosing js language

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 16.10.2, 17.0.0
    • Rendering - Code Macro
    • None
    • Unknown

    Description

      Steps to reproduce:

      "components": [
              {
                  "content": "<p class=\"xx-wysiwig_paragraph\">This is a random text This is a random text This is a random text This is a random text This is a random text This is a random text This is a random text This is a random text This is a random text This is a random text This is a random text This is a random text This is a random text This is a random text This is a random text.”</p>\n<p class=\"wysiwig_paragraph\"><em><br />This is an random text This is an random text </em><a href=\"https://qsdlkjfkjfk.eab.djhfijieic.eu/va/ebs/uhdf/2\" target=\"_blank\" rel=\"noopener\"><em>cv etgh</em></a><em> or the </em><a href=\"https://multimedia.jehnchf.ztsfcvrt.eu/fr/dsqhfeo_183788_ekjfj_bf\" target=\"_blank\" rel=\"noopener\"><em>This is a random text</em></a><em>.</em></p>\n<p class=\"wysiwig_paragraph\"><strong><br />Next steps</strong></p>\n<p class=\"wysiwig_paragraph\"><br />This is a random text This is a random text This is a random text This is a random text This is a random text This is a random text This is a random text This is a random text This is a random text This is a random text <a href=\"https://ghd-pmo.artsgev.eu/random-content/EN/TXT/?uri=FDGETJ%35646YETGDF\" target=\"_blank\" rel=\"noopener\">this is a random text</a> This is a random text this is a random text this is a random text.</p>\n<p class=\"wysiwig_paragraph\"><br />This is a random text this is a random text <a href=\"https://twitter.com/i/lists/1984872676468570730?s=20\" target=\"_blank\" rel=\"noopener\">This is a random text</a> this is a random text <a href=\"https://www.vv2876.de/vv1425-en\" target=\"_blank\" rel=\"noopener\">This is a random text</a> as soon as possible.</p>",
                  "componentType": "CONTENT"
              }
          ]
      
      • define js as Language parameter for the code macro

       

      • Save and see the end result

      Expected behaviour: the macro displays the code

      Actual result: error "Failed to execute the [code] macro. Cause: [RuntimeError: maximum recursion depth exceeded (Java StackOverflowError)]. Click on this message for details"

      Stacktrace joined stacktrace.txt

      Attachments

        Activity

          People

            Unassigned Unassigned
            clamblin LAMBLIN
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: