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

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

    XMLWordPrintable

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
          }
      }
      

      Attachments

        Activity

          People

            rsearls r searls
            xavierdury Xavier Dury (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: