cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CXF-6467) Jaxrs client handles array type property in a form object as a single element
Date Fri, 19 Jun 2015 16:26:00 GMT

     [ 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)

Mime
View raw message