You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Colm O hEigeartaigh (JIRA)" <ji...@apache.org> on 2016/10/14 14:26:21 UTC
[jira] [Closed] (CXF-6467) Jaxrs client handles array type property
in a form object as a single element
[ https://issues.apache.org/jira/browse/CXF-6467?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Colm O hEigeartaigh closed CXF-6467.
------------------------------------
> Jaxrs client handles array type property in a form object as a single element
> -----------------------------------------------------------------------------
>
> Key: CXF-6467
> URL: https://issues.apache.org/jira/browse/CXF-6467
> Project: CXF
> Issue Type: Bug
> Components: JAX-RS
> Affects Versions: 2.6.16, 2.7.16, 3.1.1
> Reporter: Pengling Qian
> Assignee: Sergey Beryozkin
> Labels: client, form
> Fix For: 3.1.1, 2.7.17, 3.1.2
>
>
> class MyForm {
> String name;
> Integer[] vals;
> }
> //----------------------------
> @PUT
> @Path("test")
> @Consumes(MediaType.APPLICATION_FORM_URLENCODED)
> void test(@FormParam("") MyForm frm);
> //----------------------------
> frm.name="blabla";
> frm.vals=new Integer[]{1,2};
> service.test(frm);
> //----------------------------
> expected POST entity body:
> name=blabla&vals=1&vals=2
> but actual entity body:
> name=blabla&vals=[Ljava.lang.Integer;@16554210
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)