You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Vidar S. Ramdal (JIRA)" <ji...@apache.org> on 2009/07/31 13:28:14 UTC
[jira] Updated: (SLING-1069) Servlets registered with for
resourceTypes = sling/servlet/default responds to all extensions
[ https://issues.apache.org/jira/browse/SLING-1069?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vidar S. Ramdal updated SLING-1069:
-----------------------------------
Attachment: RogueServlet.java
Attaching code for a servlet as described.
> Servlets registered with for resourceTypes = sling/servlet/default responds to all extensions
> ---------------------------------------------------------------------------------------------
>
> Key: SLING-1069
> URL: https://issues.apache.org/jira/browse/SLING-1069
> Project: Sling
> Issue Type: Bug
> Components: Servlets Resolver
> Affects Versions: Servlets Resolver 2.0.4
> Reporter: Vidar S. Ramdal
> Fix For: Servlets Resolver 2.0.8
>
> Attachments: RogueServlet.java
>
>
> 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"
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.