You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Felix Meschberger (JIRA)" <ji...@apache.org> on 2015/01/26 15:31:35 UTC
[jira] [Resolved] (SLING-4349) [Sightly] Extend RenderContext to
provide access to the ServletResolver resource resolver
[ https://issues.apache.org/jira/browse/SLING-4349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Felix Meschberger resolved SLING-4349.
--------------------------------------
Resolution: Fixed
Assignee: Felix Meschberger
Thanks for providing the patch. I have applied with a slight modification in Rev. 1654811.
The modification is to remove the ResourceResolver wrapper which would prevent closing the ResourceResolver. While it makes sense to add in such a security net, it is not here that this should be added. Rather the DefaultSlingScript should be wrapping it to prevent closing. See SLING-4352 for details.
> [Sightly] Extend RenderContext to provide access to the ServletResolver resource resolver
> -----------------------------------------------------------------------------------------
>
> Key: SLING-4349
> URL: https://issues.apache.org/jira/browse/SLING-4349
> Project: Sling
> Issue Type: Improvement
> Components: Scripting
> Reporter: Radu Cotescu
> Assignee: Felix Meschberger
> Fix For: Scripting Sightly Engine 1.0.0
>
> Attachments: SLING-4349.patch
>
>
> The {{RenderContext}} should be extended to provide access to the {{ServletResolver}}'s resource resolver for {{RuntimeExtension}}s. This resolver should only be used for scripts and use objects resolution.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)