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

[jira] [Created] (CXF-6467) Jaxrs client handles array type property in a form object as a single element

Pengling Qian created CXF-6467:
----------------------------------

             Summary: 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: 3.1.1, 2.7.16, 2.6.16
            Reporter: Pengling Qian
             Fix For: 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)