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

AJAX-Client: Array form parameter is sent as single merged value

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 2.3.5.Final
    • 2.3.4.Final
    • jaxrs
    • None

    Description

      Sample Java code:

      public class SomeClass {
      ...
      @POST
      public void someMethod(@FormParam("key") String[] values)

      {...}

      ...
      }

      Sample Javascript code:

      SomeClass.someMethod(

      {key:["val1","val2","val3"]}

      );

      Sample HTTP request:

      Request entity is "key=val1,val2,val3"

      The AJAX client code concatenates the values of the Array and then sends a single form parameter with the concatenated string as the value. It should add multiple form parameters with the same name and each value of the array once.

      Attachments

        Issue Links

          Activity

            People

              weinanli Weinan Li
              mdescher Michael Descher (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: