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

ListFormInjector will throw IndexOutOfBoundException if the request not coming in sorted order.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.3.6.Final, 3.0-beta-4
    • 2.3.5.Final
    • jaxrs
    • None

      For form like:

              @Form(prefix="telephoneNumbers") List<TelephoneNumber> telephoneNumbers;
      

      If the parameters comes in random order:

          request.addFormHeader("telephoneNumbers[1].countryCode", "31");
          request.addFormHeader("telephoneNumbers[0].countryCode", "91");
      

      Then ListFormInjector will throw IndexOutOfBoundException.

              weli@redhat.com Weinan Li
              weli@redhat.com Weinan Li
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: