sling-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Radu Cotescu (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SLING-7589) HTL doesn't correctly handle synthetic resource inclusions
Date Tue, 24 Apr 2018 09:26:00 GMT

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

Radu Cotescu resolved SLING-7589.
---------------------------------
    Resolution: Fixed

Fixed in:
* [commit f46ff4d|https://github.com/apache/sling-org-apache-sling-scripting-sightly/commit/f46ff4d]
* [commit cf3a27d|https://github.com/apache/sling-org-apache-sling-scripting-sightly-testing-content/commit/cf3a27d]
* [commit ba328da|https://github.com/apache/sling-org-apache-sling-scripting-sightly-testing/commit/ba328da]

> HTL doesn't correctly handle synthetic resource inclusions
> ----------------------------------------------------------
>
>                 Key: SLING-7589
>                 URL: https://issues.apache.org/jira/browse/SLING-7589
>             Project: Sling
>          Issue Type: Bug
>          Components: Scripting
>            Reporter: Radu Cotescu
>            Assignee: Radu Cotescu
>            Priority: Major
>             Fix For: Scripting HTL Engine 1.0.54-1.3.1, Scripting HTL Testing 1.0.10-1.3.1,
Scripting HTL Testing Content 1.0.10-1.3.1
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> When a synthetic resource is included in a {{data-sly-resource}} block element without
any {{resourceType}} information, the HTL {{ResourceRuntimeExtension}} will not correctly
dispatch the request. In those cases the request's resource type should be used as a fallback,
to identify the correct scripts.
> Example:
> Assuming {{caller.html}}:
> {noformat}
> <div id="caller" data-sly-resource="${'/content/lorem-ipsum' @ resourceType='syntheticresource'}"></div>
> {noformat}
> and {{syntheticresource.html}}:
> {noformat}
> <div id="synthetic-resource">
>     <span class="wrapper-text">Testing synthetic resource delegation</span>
>     <div class="wrapper" data-sly-resource="${@ selectors='selector'}"></div>
> </div>
> {noformat}
> results in the {{selector.html}} script not being found, due to not taking into consideration
the original resource type of the request.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message