Array Index Assignment for appending XML Children Not Working

Description


Result:
[2025-03-21T12:23:50,400] [XNIO-1 task-4] [DEBUG] [TEST] [contensshowcase] {"variablevalues":{}}
[2025-03-21T12:23:50,401] [XNIO-1 task-4] [DEBUG] [TEST] [contensshowcase] {"variablevalues":{"templatevariables":{},"pagevariables":{}}}

So in the first 4 lines the xml variable was not built correctly

Activity

Show:

Jon ClausenMarch 21, 2025 at 4:09 PM

I’ve never actually used array position assignment on XML children before, so I wasn’t aware that this even worked.

I have added a disabled test in ortus.boxlang.runtime.types.XMLTest.testAppendChildrenArrayNotation which replicates this. This will have to wait until or can take a look at it.

The following fails to append:

Using append will correctly add the child element

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Fix versions

Priority

Sentry

Created March 21, 2025 at 11:26 AM
Updated March 21, 2025 at 6:22 PM
Resolved March 21, 2025 at 6:22 PM