From 2d71930837092c52dc63a76941b19051ae38cc2e Mon Sep 17 00:00:00 2001 From: kyoty Date: Sun, 27 Jun 2021 18:58:22 +0800 Subject: [PATCH] the update function should use post instead of get (#5703) --- .../api/controller/AlertPluginInstanceController.java | 2 +- dolphinscheduler-ui/src/js/conf/home/store/security/actions.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/AlertPluginInstanceController.java b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/AlertPluginInstanceController.java index 42c5536042..346e0418aa 100644 --- a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/AlertPluginInstanceController.java +++ b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/AlertPluginInstanceController.java @@ -108,7 +108,7 @@ public class AlertPluginInstanceController extends BaseController { @ApiImplicitParam(name = "instanceName", value = "ALERT_PLUGIN_INSTANCE_NAME", required = true, dataType = "String", example = "DING TALK"), @ApiImplicitParam(name = "pluginInstanceParams", value = "ALERT_PLUGIN_INSTANCE_PARAMS", required = true, dataType = "String", example = "ALERT_PLUGIN_INSTANCE_PARAMS") }) - @GetMapping(value = "/update") + @PostMapping(value = "/update") @ResponseStatus(HttpStatus.OK) @ApiException(UPDATE_ALERT_PLUGIN_INSTANCE_ERROR) @AccessLogAnnotation(ignoreRequestArgs = "loginUser") diff --git a/dolphinscheduler-ui/src/js/conf/home/store/security/actions.js b/dolphinscheduler-ui/src/js/conf/home/store/security/actions.js index 87a96dde49..eda5d02e10 100644 --- a/dolphinscheduler-ui/src/js/conf/home/store/security/actions.js +++ b/dolphinscheduler-ui/src/js/conf/home/store/security/actions.js @@ -446,7 +446,7 @@ export default { */ updateAlertPluginInstance ({ state }, payload) { return new Promise((resolve, reject) => { - io.get('alert-plugin-instance/update', payload, res => { + io.post('alert-plugin-instance/update', payload, res => { resolve(res) }).catch(e => { reject(e)