Freemarker wrapper not correctly dereferencing multi value properties
---------------------------------------------------------------------
Key: SLING-556
URL: https://issues.apache.org/jira/browse/SLING-556
Project: Sling
Issue Type: Bug
Components: Scripting
Affects Versions: 2.0.0
Reporter: Bryce Ewing
Priority: Minor
Attachments: freemarker.patch
When iterating through multi value properties of type Reference the NodeModel
was not dereferencing the node reference when the property was being treated as
a node list, i.e.:
<list [EMAIL PROTECTED] as reference>...</list>
Correctly lists through all the reference properties as properties, but:
<list node.multireferenceproperty as reference>...</list>
Throws an exception. This should iterate over the property reference values,
find the node and make the node available as reference within the body of the
list markup.
Patch included to fix this, and tests included to test for both cases above.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.