[
https://issues.apache.org/jira/browse/SLING-10113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17276974#comment-17276974
]
Marvin Flock commented on SLING-10113:
--------------------------------------
Yes, targetPath starts with a slash. It worked in AEM 6.4 but I upgraded, the
working versions were
"name":"Apache Sling Scripting HTL
Compiler","fragment":false,"stateRaw":32,"state":"Active","version":"1.0.22.1_4_0"
"name":"Apache Sling Scripting HTL
Engine","fragment":false,"stateRaw":32,"state":"Active","version":"1.0.54.1_4_0"
"name":"Apache Sling Scripting HTL Java
Compiler","fragment":false,"stateRaw":32,"state":"Active","version":"1.0.26.1_4_0"
"name":"Apache Sling Scripting HTL JavaScript Use
Provider","fragment":false,"stateRaw":32,"state":"Active","version":"1.0.26"
"name":"Apache Sling Scripting HTL Sling Models Use
Provider","fragment":false,"stateRaw":32,"state":"Active","version":"1.0.6"
> data-sly-resource throwing RecursionTooDeepException
> ----------------------------------------------------
>
> Key: SLING-10113
> URL: https://issues.apache.org/jira/browse/SLING-10113
> Project: Sling
> Issue Type: Bug
> Components: Scripting
> Reporter: Marvin Flock
> Priority: Major
> Attachments: image-2021-02-01-17-40-19-873.png
>
>
> AEM Version 6.5.7
> While using data-sly-resource with a path, I get a RecursionTooDeepException.
> See -SLING-7685- for Similarity
> I currently cant make hold of the behavior, using
> _<div data-sly-resource="${targetPagePath}"></div>_
> will include the current page infinite times (at least it tries) instead of
> the target page
> while using something like this:
> _<sly data-sly-resource="${targetPagePath @
> appendPath='jcr:content/anyResource'}"></sly>_
> will render the curentPage with the RecursionTooDeepException.
> The HTL Engine I am using is of the following version:
> !image-2021-02-01-17-40-19-873.png!
--
This message was sent by Atlassian Jira
(v8.3.4#803005)