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

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

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 2.3.4.Final
    • Fix Version/s: 2.3.5.Final
    • Component/s: jaxrs
    • Labels:
      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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved: