[ 
https://issues.apache.org/jira/browse/CXF-8089?focusedWorklogId=295160&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-295160
 ]

ASF GitHub Bot logged work on CXF-8089:
---------------------------------------

                Author: ASF GitHub Bot
            Created on: 15/Aug/19 03:07
            Start Date: 15/Aug/19 03:07
    Worklog Time Spent: 10m 
      Work Description: reta commented on pull request #572: CXF-8089: Build 
Comma Separated Values in url from Array/List Query Param
URL: https://github.com/apache/cxf/pull/572
 
 
   ### Description
   The typical style the collection-like query parameters are encoded assumes 
the repetition of the parameter in question multiple times, for example:
   
       http://localhost/books?ids=1&ids=2&ids=3&ids=4
   
   However, as part of https://issues.apache.org/jira/browse/CXF-6941, the CXF 
server-side includes support for collection query parameters encoded as 
comma-separated strings, for example:
   
       http://localhost/books?ids=1,2,3,4
   
   This is quite useful in many cases however the CXF's client side does not 
anyhow support this encoding and always uses the repetition 
(`ids=1&ids=2&ids=3&ids=4`). This PRs complements the client-side feature set.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 295160)
            Time Spent: 10m
    Remaining Estimate: 0h

> Build Comma Separated Values in url from Array/List Query Param
> ---------------------------------------------------------------
>
>                 Key: CXF-8089
>                 URL: https://issues.apache.org/jira/browse/CXF-8089
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 3.2.10, 3.3.3
>            Reporter: Sridhar
>            Assignee: Andriy Redko
>            Priority: Minor
>             Fix For: 3.4.0, 3.2.11, 3.3.4
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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|http://localhost:8080/MovieDB/GetJson?name=Actor1,Actor2,Actor3&startDate=20120101&endDate=20120505]
> 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.
>  



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to