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] [Created] (CXF-6478) Introduce the option to disable using query parameters to populate the form maps
Date Sun, 28 Jun 2015 18:37:04 GMT
Andrei Shakirin created CXF-6478:
------------------------------------

             Summary: 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


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