This issue has been created
There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-4de796c4-da78-4703-ac6e-6c52c3601437 XWIKI-23142 Open

Rendering error when inserting a Root parameter in Children Macro which prevents displaying children

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-696cc43e-b3ee-4a0b-b796-067f82ee1616 Ilie Andriuta created this issue on 28/Apr/25 18:26
 
Summary: Rendering error when inserting a Root parameter in Children Macro which prevents displaying children
Issue Type: cid:jira-generated-image-avatar-4de796c4-da78-4703-ac6e-6c52c3601437 Bug
Affects Versions: 16.10.6, 17.3.0-rc-1
Assignee: Unassigned
Attachments: Children_macro_no_pages.png
Created: 28/Apr/25 18:26
Environment: Windows 11 Pro, Firefox 137, using an instance of XWiki 16.10.6 on PostgreSQL 17, Tomcat 9.0.104
Priority: cid:jira-generated-image-static-major-81ca3bdb-a0c3-4964-ab8c-bdb9a68b03cf Major
Reporter: Ilie Andriuta
Description:

Steps to reproduce

  1. Edit the Sandbox.WebHome page in WYSIWYG mode
  2. Click on Insert > Other Macros > Children
  3. Click 'Select'
  4. Insert a Root parameter, like xwiki:Sandbox
  5. Click 'Submit'

Expected results

The macro is inserted with the children being displayed. No errors occur in the logs.

Actual results

The following error is displayed in XWiki console:

2025-04-28 19:04:16,501 [http-nio-1115-exec-2 - http://localhost:1115/xwiki/bin/get/Sandbox/WebHome?] ERROR o.a.v.rendering                - Left side ($childNodeIds.size()) of comparison operation has null value at xwiki:XWiki.DocumentTreeMacros[line 179, column 29]

No pages are displayed on the macro.

 
 

1 update

 
cid:jira-generated-image-avatar-696cc43e-b3ee-4a0b-b796-067f82ee1616 Changes by Ilie Andriuta on 28/Apr/25 18:27
 
Description: * Steps to reproduce *
# Edit the {{Sandbox.WebHome}} page in WYSIWYG mode
# Click on Insert > Other Macros > Children
# Click 'Select'
# Insert a Root parameter, like {{xwiki:Sandbox}}
# Click 'Submit'

* Expected results *

The macro is inserted with the children being displayed. No errors occur in the logs.

* Actual results *

The following error is displayed in XWiki console:
{code:java}
2025-04-28 19:04:16,501 [http-nio-1115-exec-2 - http://localhost:1115/xwiki/bin/get/Sandbox/WebHome?] ERROR o.a.v.rendering                - Left side ($childNodeIds.size()) of comparison operation has null value at xwiki:XWiki.DocumentTreeMacros[line 179, column 29]{code}
No pages are displayed on the macro.