You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Daniel Kulp (JIRA)" <ji...@apache.org> on 2010/10/07 19:21:33 UTC
[jira] Updated: (CXF-2958) CXF JAXRS Proxies can not handle
explicilt collections of query and matrix parameters
[ https://issues.apache.org/jira/browse/CXF-2958?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp updated CXF-2958:
-----------------------------
Fix Version/s: (was: 2.2.11)
(was: 2.3)
> 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
> Affects Versions: 2.2.10
> Reporter: Sergey Beryozkin
>
> 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.
-
You can reply to this email to add a comment to the issue online.