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

    • Bug
    • Resolution: Done
    • Minor
    • 3.12.0.Final, 4.5.5.Final
    • 4.5.3.Final
    • jaxrs
    • None

    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: