[ 
https://issues.apache.org/jira/browse/SLING-1069?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12915329#action_12915329
 ] 

Felix Meschberger commented on SLING-1069:
------------------------------------------

Commited to Rev. 1001774:

  - Bertrand's integration test enhancement (actually the HtmlDefaultServlet 
starts disabled and is enabled by the testcase for the duration of the test 
case to not influence (in a bad way) the other integration tests)
  - My own patch with some unit tests ensuring proper permutation of 
registration properties

> 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
>    Affects Versions: Servlets Resolver 2.0.4
>            Reporter: Vidar S. Ramdal
>            Assignee: Felix Meschberger
>             Fix For: Servlets Resolver 2.1.0
>
>         Attachments: RogueServlet.java, SLING-1069-fmeschbe.patch, 
> SLING-1069-test.patch, SLING-1069.patch
>
>
> 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.

Reply via email to