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

Build Comma Separated Values in url from Array/List Query Param

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.2.10, 3.3.3
    • Fix Version/s: 3.2.11, 3.3.4, 3.4.0
    • Component/s: JAX-RS
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      https://issues.apache.org/jira/browse/CXF-6941

      Issue reported above is get comma separated values as List on Server side (for Query Param).

      http://localhost:8080/MovieDB/GetJson?name=Actor1,Actor2,Actor3&startDate=20120101&endDate=2012050

      But for Jaxrs- CXF client, when we are trying to build URL from a List or Array, I don't see a way to build URL as comma separated values 

      The solution provided to use "parse.query.value.as.collection" contextual property is not used in org.apache.cxf.jaxrs.client.AbstractClient and  org.apache.cxf.jaxrs.impl.UriBuilderImpl

      And works only on server side while receiving request, not on client side (i.e while building URL from List). 

      Switching to "multi" option for query param means, I need to ask all existing clients to update the way they build URL, which is not feasible.

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                reta Andriy Redko
                Reporter:
                SridharKumar Sridhar
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m