This issue has been created
There are 2 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-22bfcf93-efc5-44b7-81cb-178e0f99494a XWIKI-23253 Open

Java StackOverflowError in code macro when choosing js language

 
View issue   ·   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-3ca9aec3-d48f-4b92-b649-9226bcaacb26 LAMBLIN created this issue on 28/May/25 10:45
 
Summary: Java StackOverfloError in code macro when chosing js language
Issue Type: cid:jira-generated-image-avatar-22bfcf93-efc5-44b7-81cb-178e0f99494a Bug
Affects Versions: 16.10.2, 17.0.0
Assignee: Unassigned
Attachments: With+code.WebHome.xar, stacktrace.txt
Components: Rendering - Code Macro
Created: 28/May/25 10:45
Priority: cid:jira-generated-image-static-major-d93428c4-40ff-4aa0-a150-4621f52336e6 Major
Reporter: LAMBLIN
Description:

Steps to reproduce:

"components": [
       

Unknown macro: {             "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.txtlink_attachment_7.gif

 
 

2 updates

 
cid:jira-generated-image-avatar-3ca9aec3-d48f-4b92-b649-9226bcaacb26 Changes by LAMBLIN on 28/May/25 10:47
 
Summary: Java StackOverfloError StackOverflowError in code macro when chosing choosing js language
Description: Steps to reproduce:
* Include this code example in a code snippet macro - [^With+code.WebHome.xar] joined too if needed:

{
quote code:java }
"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"
        }
    ]
{
quote code }
* 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]