You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (Jira)" <ji...@apache.org> on 2022/04/01 10:30:00 UTC

[jira] [Closed] (SLING-11155) Bundled scripts should be registered by path for the main script when overriding

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

Carsten Ziegeler closed SLING-11155.
------------------------------------

> Bundled scripts should be registered by path for the main script when overriding
> --------------------------------------------------------------------------------
>
>                 Key: SLING-11155
>                 URL: https://issues.apache.org/jira/browse/SLING-11155
>             Project: Sling
>          Issue Type: Bug
>          Components: Scripting, Servlets
>    Affects Versions: Servlets Resolver 2.9.2
>            Reporter: Karl Pauls
>            Assignee: Karl Pauls
>            Priority: Major
>             Fix For: Servlets Resolver 2.9.4
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> When a bundled script is provided without a real script but a resource super type, it gets a capability for the resource type and will be registered for that resource type (with the resource super type set). That is done to proxy the resource super type. 
> The problem is that the resolver will register a GET/HEAD servlet automatically for resource types that have no other properties set. Consequently, this setup ends up handling all GET requests while it should only handle requests for the default extension (i.e. it overrides requests for .json which would normally be handled by the default GET servlet). 
> The fix is for the resolver to not register these proxies as resource types servlets but bind them by path instead.  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)