Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Servlets Resolver 2.0.4
-
None
Description
A servlet registered with
@scr.property name="sling.servlet.extensions" value="html"
@scr.property name="sling.servlet.resourceTypes" value="sling/servlet/default"
in the Javadoc, responds to all requests, in effect ignoring the "sling.servlet.extensions" property.
To reproduce:
1. Install servlet from attachment (coming up)
2. Let the browser fetch /somenode.json
Expected result:
The server returns the JSON rendering of /somenode
Actual result:
The server returns "Rogue Servlet"
Attachments
Attachments
Issue Links
- depends upon
-
SLING-892 Allow servlets to be registered with extensions for all request methods
- Closed