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

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

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: