[
https://issues.apache.org/jira/browse/CXF-2958?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12991174#comment-12991174
]
Rob Sonke commented on CXF-2958:
--------------------------------
It does, my string array was converted to the tostring representation first and
now it's passed as multiple key/value pairs in the querystring.
Thanks again.
> CXF JAXRS Proxies can not handle explicilt collections of query and matrix
> parameters
> -------------------------------------------------------------------------------------
>
> Key: CXF-2958
> URL: https://issues.apache.org/jira/browse/CXF-2958
> Project: CXF
> Issue Type: Bug
> Components: JAX-RS
> Affects Versions: 2.2.10
> Reporter: Sergey Beryozkin
> Assignee: Sergey Beryozkin
> Fix For: 2.2.12, 2.3.1, 2.4
>
>
> 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);
> }
> }
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira