cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrei Shakirin (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CXF-6478) Introduce the option to disable using query parameters to populate the form maps
Date Sun, 05 Jul 2015 13:40:06 GMT

     [ 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)

Mime
View raw message