You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicecomb.apache.org by "liubao (Jira)" <ji...@apache.org> on 2020/02/21 03:06:00 UTC

[jira] [Closed] (SCB-334) log more detail when user misuse the query parameter as request body in rest

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

liubao closed SCB-334.
----------------------
    Resolution: Fixed

> log more detail when user misuse the query parameter as request body in rest
> ----------------------------------------------------------------------------
>
>                 Key: SCB-334
>                 URL: https://issues.apache.org/jira/browse/SCB-334
>             Project: Apache ServiceComb
>          Issue Type: Improvement
>          Components: Java-Chassis
>            Reporter: Eric Lee
>            Priority: Major
>              Labels: newbie
>
> As a dev get used to traditional springmvc development, if I need to post a request with customize type as its body, I just need to pass that in the methods argument without annotations. However, in Java Chassis, the argument in methods are query parameter by default. If I pass a customize instance as the parameter, it will throw exception saying it does not support complex type. This is very confusing. Maybe we should tell user to add the RequestBody annotation or when we detect the complex type in post request query parameter, we just take it as the request body?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)