Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-2548

Body of type Form does not honor resteasy.use.container.form.params setting

    Details

      Description

      When configuring RESTEasy with resteasy.use.container.form.params = true and using a Filter which reads parameters before the resource, a body of type MultivaluedMap<String, String> will receive all parameters while a body of type Form will be empty.

      @Path("/")
      public class MyResource {
      
          @POST
          @Path("/foo")
          public Response foo(Form form) {
              // form is empty
          }
      
          @POST
          @Path("/bar")
          public Response bar(MultivaluedMap<String, String> map) {
              // map is filled
          }
      }
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                rsearls r searls
                Reporter:
                xdury Xavier Dury
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: