[ 
https://issues.apache.org/jira/browse/SLING-10012?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Konrad Windszus updated SLING-10012:
------------------------------------
    Description: 
I have a resource type {{a}} with a bundled script {{a.html}} which contains

{code}
<sly data-sly-use.simpleTemplate="simple.html">
{code} 

I have a derived resource type {{myA}} which has {{a}} as resourceSuperType. 
That one contains {{simple.html}} as bundled script file. Still the lookup 
fails with

{code}
Caused by: org.apache.sling.scripting.sightly.SightlyException: No use provider 
could resolve identifier simple.html
        at 
org.apache.sling.scripting.sightly.impl.engine.extension.use.UseRuntimeExtension.call(UseRuntimeExtension.java:79)
 [org.apache.sling.scripting.sightly:1.4.6.140]
        at 
org.apache.sling.scripting.sightly.impl.engine.runtime.RenderContextImpl.call(RenderContextImpl.java:72)
 [org.apache.sling.scripting.sightly:1.4.6.140]
        at 
org.apache.sling.scripting.sightly.<a>__002e__html.render(container__002e__html.java:62)
{code}

Seems that the fix from SLING-9718 has not yet covered this use case.

  was:
I have a resource type A with a bundled script a.html which contains

{code}
<sly data-sly-use.simpleTemplate="simple.html">
{code} 

I have a derived resource type myA which has A as resourceSuperType. That one 
contains {{simple.html}} as bundled script file. Still the loookup fails with

{code}
Caused by: org.apache.sling.scripting.sightly.SightlyException: No use provider 
could resolve identifier simple.html
        at 
org.apache.sling.scripting.sightly.impl.engine.extension.use.UseRuntimeExtension.call(UseRuntimeExtension.java:79)
 [org.apache.sling.scripting.sightly:1.4.6.140]
        at 
org.apache.sling.scripting.sightly.impl.engine.runtime.RenderContextImpl.call(RenderContextImpl.java:72)
 [org.apache.sling.scripting.sightly:1.4.6.140]
        at 
org.apache.sling.scripting.sightly.<A>__002e__html.render(container__002e__html.java:62)
{code}

Seems that the fix from SLING-9718 has not yet covered this use case.


> Lookup of bundled template files does not work in some cases
> ------------------------------------------------------------
>
>                 Key: SLING-10012
>                 URL: https://issues.apache.org/jira/browse/SLING-10012
>             Project: Sling
>          Issue Type: Bug
>          Components: Scripting
>    Affects Versions: Scripting HTL Engine 1.4.6-1.4.0
>            Reporter: Konrad Windszus
>            Priority: Major
>
> I have a resource type {{a}} with a bundled script {{a.html}} which contains
> {code}
> <sly data-sly-use.simpleTemplate="simple.html">
> {code} 
> I have a derived resource type {{myA}} which has {{a}} as resourceSuperType. 
> That one contains {{simple.html}} as bundled script file. Still the lookup 
> fails with
> {code}
> Caused by: org.apache.sling.scripting.sightly.SightlyException: No use 
> provider could resolve identifier simple.html
>       at 
> org.apache.sling.scripting.sightly.impl.engine.extension.use.UseRuntimeExtension.call(UseRuntimeExtension.java:79)
>  [org.apache.sling.scripting.sightly:1.4.6.140]
>       at 
> org.apache.sling.scripting.sightly.impl.engine.runtime.RenderContextImpl.call(RenderContextImpl.java:72)
>  [org.apache.sling.scripting.sightly:1.4.6.140]
>       at 
> org.apache.sling.scripting.sightly.<a>__002e__html.render(container__002e__html.java:62)
> {code}
> Seems that the fix from SLING-9718 has not yet covered this use case.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to