You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Radu Cotescu (Jira)" <ji...@apache.org> on 2020/09/03 17:04:00 UTC

[jira] [Resolved] (SLING-9718) Relative paths for bundled HTL template files are not correctly handled

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

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

Fixed in [commit 65c4814|[https://github.com/apache/sling-org-apache-sling-scripting-sightly/commit/65c4814],] added tests in [commit cef5f6a|https://github.com/apache/sling-org-apache-sling-scripting-bundle-tracker-it/commit/cef5f6a].

> Relative paths for bundled HTL template files are not correctly handled
> -----------------------------------------------------------------------
>
>                 Key: SLING-9718
>                 URL: https://issues.apache.org/jira/browse/SLING-9718
>             Project: Sling
>          Issue Type: Bug
>          Components: Scripting
>    Affects Versions: Scripting HTL Engine 1.4.0-1.4.0
>            Reporter: Radu Cotescu
>            Assignee: Radu Cotescu
>            Priority: Major
>             Fix For: Scripting HTL Engine 1.4.4-1.4.0
>
>
> If a template library (a file providing one or more HTL templates) is bundled (precompiled or not) and is loaded by a caller using a relative path, the loading might fail if the lookup is done via the {{org.apache.sling.scripting.sightly.impl.engine.bundled.BundledUnitManagerImpl#getRenderUnit(javax.script.Bindings, java.lang.String)}} service method.



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