Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-6478

Introduce the option to disable using query parameters to populate the form maps

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.1
    • 3.1.2
    • JAX-RS
    • None
    • Unknown

    Description

      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.

      Attachments

        Activity

          People

            ashakirin Andrei Shakirin
            ashakirin Andrei Shakirin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: