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 2015/04/02 11:01:13 UTC

[jira] [Resolved] (SLING-4546) Sightly: Improper handling of extension and selectors by data-sly-resource

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

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

Fixed in [r1670852|https://svn.apache.org/r1670852].

> Sightly: Improper handling of extension and selectors by data-sly-resource
> --------------------------------------------------------------------------
>
>                 Key: SLING-4546
>                 URL: https://issues.apache.org/jira/browse/SLING-4546
>             Project: Sling
>          Issue Type: Bug
>          Components: Scripting
>            Reporter: Vlad Bailescu
>            Assignee: Radu Cotescu
>             Fix For: Scripting Sightly Engine 1.0.2
>
>
> Sightly is not handling extensions and selectors properly in {{data-sly-resource}}:
> # Selectors included in path or parent resource are ignored if no selector-related option is specified
> # Extensions are ignored completely, Sightly assumes anything preceded by a dot is a selector
> This leads to:
> * {{'resource.selector.html'}} being equivalent to {{'resource'}} instead of {{'resource.html' @ selectors=\['selector'\]}}
> * {{'resource.selector.html' @ addSelectors=\['other'\]}} being equivalent to {{'resource' @ selectors=\['selector', 'html', 'other'\]}} instead of {{'resource.html' @ selectors=\['selector', 'other'\]}}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)