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 2021/04/28 10:05:00 UTC
[jira] [Updated] (SLING-10340) The ScriptResource should unwrap the
active resource before adapting it to a Servlet
[ https://issues.apache.org/jira/browse/SLING-10340?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Radu Cotescu updated SLING-10340:
---------------------------------
Description:
In SLING-9365 the Servlet Resolver was enhanced to not mount the resource providers for the bound servlets, with the benefit of way faster startups for systems with a large number of servlets.
However, when the {{ScriptResource}} has to be adapted to a {{Servlet}}, the active resource should be checked if it's either a {{ServletResource}} or a wrapped {{ServletResource}} to obtain its servlet. Otherwise the normal {{SlingAdaptable}} behaviour should be used.
was:
In SLING-9365 the Servlet Resolver was enhanced to not mount the resource providers for the bound servlets, with the benefit of way faster startups for systems with a large number of servlets.
However, when the {{ScriptResource}} has to be adapted to a {{Servlet}}, this should only happen if the {{ScriptResource}} is not based on a {{ServletResource}} or a wrapped {{ServletResource}} in order for the correct shadowed resource to be picked up.
> The ScriptResource should unwrap the active resource before adapting it to a Servlet
> ------------------------------------------------------------------------------------
>
> Key: SLING-10340
> URL: https://issues.apache.org/jira/browse/SLING-10340
> Project: Sling
> Issue Type: Bug
> Components: Servlets
> Affects Versions: Servlets Resolver 2.7.0
> Reporter: Radu Cotescu
> Assignee: Radu Cotescu
> Priority: Major
> Fix For: Servlets Resolver 2.7.14
>
>
> In SLING-9365 the Servlet Resolver was enhanced to not mount the resource providers for the bound servlets, with the benefit of way faster startups for systems with a large number of servlets.
> However, when the {{ScriptResource}} has to be adapted to a {{Servlet}}, the active resource should be checked if it's either a {{ServletResource}} or a wrapped {{ServletResource}} to obtain its servlet. Otherwise the normal {{SlingAdaptable}} behaviour should be used.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)