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

Karl Pauls resolved SLING-7349.
-------------------------------
    Resolution: Fixed

Fixed by registering a servlet filter with the org.apache.sling HttpContext 
that will wrap the request if it is not a SlingHttpServletRequest and ensures 
that the ParameterSupport is used that we used in the handleSecurity.

> Plain Servlets registered with the org.apache.sling HTTP Context cannot get 
> requests parameters from POST body
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: SLING-7349
>                 URL: https://issues.apache.org/jira/browse/SLING-7349
>             Project: Sling
>          Issue Type: Bug
>          Components: Engine
>    Affects Versions: Engine 2.6.10
>            Reporter: Karl Pauls
>            Assignee: Karl Pauls
>             Fix For: Engine 2.6.12
>
>
> If a servlet is registered using the `org.apache.sling` context, e.g. using
> {code}
> HttpWhiteboardConstants.HTTP_WHITEBOARD_CONTEXT_SELECT + "=(" + 
> HttpWhiteboardConstants.HTTP_WHITEBOARD_CONTEXT_NAME + "=org.apache.sling)"
> {code}
> and a POST is made to this servlet, any request parameters in the body of the 
> POST return null when retrieved using `request.getParameter()`.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to