github-actions[bot] commented on issue #17389:
URL: 
https://github.com/apache/dolphinscheduler/issues/17389#issuecomment-3135567283

   ### Search before asking
   
   - [x] I had searched in the 
[issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### What happened
   
   public static Map<String, String> toMap(String json) There is a problem with 
the compatibility of this method, when my http component, the request Body is
   {
     "applyId": "CA2024011800236476",
     "bizType": "SX",
     "customerName": "Zhang San",
     "decisionCode": "yqg_sx",
     "featureSourceDataList": [{
       "data": "{\"dataId\":\"test\",\"content\":\"test\",\"status\":\"200\"}",
       "dataType": "TEST"
     }],
     "idNo": "201283199306196679",
     "mobileNo": "18575307870",
     "parallelSwitch": "NEW",
     "params": {},
     "computeTaskName": "TEST",
     "productId": "PN00011507-0002",
     "productNo": "PN00011507"}
   In this case, because featureSourceDataList value is special, toMap will 
fail and run an error
   json to map exception!
   com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot 
deserialize value of type `java.lang.String` from Array value (token 
`JsonToken.START_ARRAY`)
   
   ### What you expected to happen
   
   When I was testing locally, I found that there was this problem
   
   ### How to reproduce
   
   {
     "applyId": "CA2024011800236476",
     "bizType": "SX",
     "customerName": "Zhang San",
     "decisionCode": "yqg_sx",
     "featureSourceDataList": [{
       "data": "{\"dataId\":\"test\",\"content\":\"test\",\"status\":\"200\"}",
       "dataType": "TEST"
     }],
     "idNo": "201283199306196679",
     "mobileNo": "18575307870",
     "parallelSwitch": "NEW",
     "params": {},
     "computeTaskName": "TEST",
     "productId": "PN00011507-0002",
     "productNo": "PN00011507"}, use this message to test and reproduce
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   dev
   
   ### Are you willing to submit PR?
   
   - [x] Yes I am willing to submit a PR!
   
   ### 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]

Reply via email to