You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Shameera Rathnayaka (JIRA)" <ji...@apache.org> on 2012/08/28 14:41:07 UTC

[jira] [Updated] (AXIS2-5403) Always expect parameter array when using JsonRPCMessageReceiver

     [ https://issues.apache.org/jira/browse/AXIS2-5403?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shameera Rathnayaka updated AXIS2-5403:
---------------------------------------

    Attachment: AXIS2-5403.patch

You can find a patch with this, Please review and commit

Thanks,
Shameera.
                
> Always expect parameter array when using  JsonRPCMessageReceiver
> ----------------------------------------------------------------
>
>                 Key: AXIS2-5403
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5403
>             Project: Axis2
>          Issue Type: Bug
>          Components: json
>    Affects Versions: 1.7.0
>            Reporter: Shameera Rathnayaka
>            Assignee: Shameera Rathnayaka
>              Labels: gson, json
>             Fix For: 1.7.0
>
>         Attachments: AXIS2-5403.patch
>
>
> invokeService method in org.apache.axis2.json.impl.utils.JsonUtils class checks num of parameters , if parameter count is more than one, then it expects to be those parameters, values of JSON Array in request, if parameter count is equal to one then it doesn't expect to be that parameter, a value of JSON array. But it is better to expect parameters come as a values of JSON array always, even there is one parameter. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org