Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-2958

CXF JAXRS Proxies can not handle explicilt collections of query and matrix parameters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.10
    • 2.2.12, 2.3.1, 2.4
    • JAX-RS
    • None

    Description

      Client proxies fail to serialize explicit collections of query and matrix parameters, ex

      doIt(@QueryParam("id") List<Long> ids)

      Possible fix :

      In AbstractClient.addParametersToBuilder :

      there's a branch there

      if (!"".equals(paramName)) {
      addToBuilder(ub, paramName, pValue, pt);
      }

      I think it has to be something like :

      if (!"".equals(paramName)) {
      if (InjectionUtils.isSupportedCollectionOrArray(pValue.getClass()))

      { // cast pValue to Collection and for every member addToBuilder(ub, paramName, pValue, pt); }

      else

      { addToBuilder(ub, paramName, pValue, pt); }

      }

      Attachments

        Activity

          People

            sergey_beryozkin Sergey Beryozkin
            sergey_beryozkin Sergey Beryozkin
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: