You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2015/03/09 12:40:38 UTC

[jira] [Commented] (SLING-4483) Sightly: data-sly-resource does not properly resolve relative paths

    [ https://issues.apache.org/jira/browse/SLING-4483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14352842#comment-14352842 ] 

ASF GitHub Bot commented on SLING-4483:
---------------------------------------

GitHub user vladbailescu opened a pull request:

    https://github.com/apache/sling/pull/66

    SLING-4483 - Sightly: data-sly-resource does not properly resolve relative paths

    Prepended current resource path to relative paths to make sure normalization doesn't break the paths. The same approach is used by <sling:include ../>

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/vladbailescu/sling SLING-4483-sightly-resource-relative-paths

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/sling/pull/66.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #66
    
----
commit 9728f8ae36001c174fa9ae74a9a6ac17e0979df9
Author: vladbailescu <ba...@adobe.com>
Date:   2015-03-09T11:39:34Z

    SLING-4483 - Sightly: data-sly-resource does not properly resolve relative paths
    
    Prepended current resource path to relative paths to make sure normalization doesn't break the paths. The same approach is used by <sling:include ../>

----


> Sightly: data-sly-resource does not properly resolve relative paths
> -------------------------------------------------------------------
>
>                 Key: SLING-4483
>                 URL: https://issues.apache.org/jira/browse/SLING-4483
>             Project: Sling
>          Issue Type: Bug
>            Reporter: Vlad Bailescu
>            Priority: Minor
>
> The following resource inclusion is not working:
> {code:html}
> <div data-sly-resource="${@ path='.', resourceType='foo/bar'}"></div>
> {code}
> The returned error is: 
> {{org.apache.sling.scripting.sightly.impl.engine.extension.ResourceRuntimeExtension Script path cannot be empty}}



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