Karl Pauls created SLING-11155: ---------------------------------- Summary: 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 Fix For: Servlets Resolver 2.9.4
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)