You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Sergey Beryozkin (JIRA)" <ji...@apache.org> on 2015/06/19 18:26:00 UTC

[jira] [Resolved] (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 ]

Sergey Beryozkin resolved CXF-6467.
-----------------------------------
       Resolution: Fixed
    Fix Version/s: 3.1.1
                   2.7.17
         Assignee: Sergey Beryozkin

> 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: 2.7.17, 3.1.2, 3.1.1
>
>
> 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)