lenian opened a new issue, #12640: URL: https://github.com/apache/dolphinscheduler/issues/12640
### 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 Http Request case: url: http://localhost:9093/test/submit method: post param: { "param": "select * from demo", "yarnApplicationName": "flink-sql-test", "jobName": "sql-test-01", "flinkConfiguration": { "taskManagerMemoryProcessSize": "1024m", "taskManagerNumberOfTaskSlots": 1, "jobManagerMemoryProcessSize": "1024m", "checkpointInterval": 5000, "parallelism": 1 } } Dolphin HttpTask excute log: [INFO] 2022-07-05 16:36:40.260 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.http.HttpTask:[83] - http task params {"localParams":[],"httpParams": [ { "prop": "param", "httpParametersType": "BODY", "value": "select * from demo" }, { "prop": "yarnApplicationName", "httpParametersType": "BODY", "value": "flink-sql-test" }, { "prop": "jobName", "httpParametersType": "BODY", "value": "sql-test-01" }, { "prop": "flinkConfiguration", "httpParametersType": "BODY", "value": "{ \"taskManagerMemoryProcessSize\": \"1024m\", \"taskManagerNumberOfTaskSlots\": 1, \"jobManagerMemoryProcessSize\": \"1024m\", \"checkpointInterval\": 5000, \"parallelism\": 1 }" } ] ,"url":" http://localhost:9093/test/submit","httpMethod":"POST","httpCheckCondition":"STATUS_CODE_DEFAULT","condition":"","connectTimeout":60000,"socketTimeout":60000,"dependence":{},"conditionResult":{"successNode":[],"failedNode":[]},"waitStartTimeout":{},"switchResult":{}} Result:flinkConfiguration is children json ,but Is parsed into a string;Final the background program failed to parse json。 ### What you expected to happen org.apache.dolphinscheduler.plugin.task.http.HttpTask 255 line: jsonParam.put(property.getProp(), property.getValue()); modification: if(property.getValue().contains("{") || property.getValue().contains("[")){ jsonParam.set(property.getProp(),JSONUtils.parseObject(property.getValue())); }else { jsonParam.put(property.getProp(), property.getValue()); } ### How to reproduce Http Request case: url: http://localhost:9093/test/submit method: post param: { "param": "select * from demo", "yarnApplicationName": "flink-sql-test", "jobName": "sql-test-01", "flinkConfiguration": { "taskManagerMemoryProcessSize": "1024m", "taskManagerNumberOfTaskSlots": 1, "jobManagerMemoryProcessSize": "1024m", "checkpointInterval": 5000, "parallelism": 1 } } Dolphin HttpTask excute log: [INFO] 2022-07-05 16:36:40.260 TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.http.HttpTask:[83] - http task params {"localParams":[],"httpParams": [ { "prop": "param", "httpParametersType": "BODY", "value": "select * from demo" }, { "prop": "yarnApplicationName", "httpParametersType": "BODY", "value": "flink-sql-test" }, { "prop": "jobName", "httpParametersType": "BODY", "value": "sql-test-01" }, { "prop": "flinkConfiguration", "httpParametersType": "BODY", "value": "{ \"taskManagerMemoryProcessSize\": \"1024m\", \"taskManagerNumberOfTaskSlots\": 1, \"jobManagerMemoryProcessSize\": \"1024m\", \"checkpointInterval\": 5000, \"parallelism\": 1 }" } ] ,"url":" http://localhost:9093/test/submit","httpMethod":"POST","httpCheckCondition":"STATUS_CODE_DEFAULT","condition":"","connectTimeout":60000,"socketTimeout":60000,"dependence":{},"conditionResult":{"successNode":[],"failedNode":[]},"waitStartTimeout":{},"switchResult":{}} Result:flinkConfiguration is children json ,but Is parsed into a string;Final the background program failed to parse json。 ### Anything else _No response_ ### Version 3.0.x ### 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]
