[
https://issues.apache.org/jira/browse/CXF-6478?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrei Shakirin resolved CXF-6478.
----------------------------------
Resolution: Fixed
Fix Version/s: 3.1.2
> Introduce the option to disable using query parameters to populate the form
> maps
> --------------------------------------------------------------------------------
>
> Key: CXF-6478
> URL: https://issues.apache.org/jira/browse/CXF-6478
> Project: CXF
> Issue Type: Improvement
> Components: JAX-RS
> Affects Versions: 3.1.1
> Reporter: Andrei Shakirin
> Assignee: Andrei Shakirin
> Fix For: 3.1.2
>
>
> Accordingly JAX-RS specification, the parameters marked with @FormParam
> annotation can take the values from the query parameters in case if request
> body is already consumed:
> Servlet Container section:
> "Servlet filters may trigger consumption of a request body by accessing
> request parameters. In a servlet container the @FormParam annotation and the
> standard entity provider for application/x-www-form-urlencoded MUST obtain
> their values from the servlet request parameters if the request body has
> already been consumed. Servlet APIs do not differentiate between parameters
> in the URI and body of a request so URI-based query parameters may be
> included in the entity parameter."
> It is reasonable default behavior, but for in some instances this may be
> undesired.
> I would propose to introduce custom option to explicitly forbid specified
> assumption.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)