Godfunc opened a new issue, #15348:
URL: https://github.com/apache/dubbo/issues/15348

   ### Pre-check
   
   - [x] I am sure that all the content I provide is in English.
   
   
   ### Search before asking
   
   - [x] I had searched in the 
[issues](https://github.com/apache/dubbo/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Apache Dubbo Component
   
   Java SPI Extensions (apache/dubbo-spi-extensions)
   
   ### Dubbo Version
   
   Dubbo Java 3.3.0 oracle jdk 17
   
   ### Steps to reproduce this issue
   
   1. my rest api
    ```java
   @PostMapping("addUser")
       public R<UserParam> addUser(@RequestBody UserParam user) {
           return R.ok(user);
       }
   ```
   
   2. my dubbo interface
   ```java
       @PostMapping(value = "addUser", consumes = 
MediaType.APPLICATION_JSON_VALUE)
       R<UserParam> addUser(@RequestBody UserParam user);
   ```
   
   3. FormConsumerParamParser parses parameters after BodyConsumerParamParser 
in the resolution order.
   
   
![Image](https://github.com/user-attachments/assets/30a6e764-0a6a-4482-9a79-28fa8e911e33)
   
   4. Finally, JsonUtils.toJson produced an incorrect request body.
   
   
   
![Image](https://github.com/user-attachments/assets/5a356d9d-6d5b-47f8-81a3-b305a583d3fb)
   
   ### What you expected to happen
   
   FormConsumerParamParser should not support @RequestBody
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request to fix on your own?
   
   - [x] Yes I am willing to submit a pull request on my own!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to