Submit a bug please.

On 6/14/12 5:19 PM, Michael Descher wrote:
> I have a RestEASY service where a resource method takes a form parameter. The 
> type of the parameter in Java is a String array. When using the generated 
> Javascript AJAX client code and putting an array into the parameter map, the 
> items of the array are concatenated with comma and sent in a single parameter.
>
>
> Sample Java code:
>
> public class SomeClass {
> ...
> @POST
> public void someMethod(@FormParam("key") String[] values) {...}
> ...
> }
>
>
> Sample Javascript code:
>
> SomeClass.someMethod({key:["val1","val2","val3"]});
>
>
> Sample HTTP request:
>
> Request entity is "key=val1,val2,val3"
>
>
> Is this intended behaviour or should the client code send multiple parameters 
> with the same name, one for each array value? Is this worth a bug report or 
> feature request in the RestEASY Jira?
>
> Best regards,
> Michael Descher
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>
>
>
> _______________________________________________
> Resteasy-users mailing list
> Resteasy-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/resteasy-users
>

-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Resteasy-users mailing list
Resteasy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/resteasy-users

Reply via email to