This is an automated email from the ASF dual-hosted git repository.
xiaoyu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shenyu.git
The following commit(s) were added to refs/heads/master by this push:
new f6de53471 [ISSUE #4072] fix plugin update bug by modifying config
field setter (#4146)
f6de53471 is described below
commit f6de53471030f8e5ecde5ea973f092130c47641a
Author: kyeongsun <[email protected]>
AuthorDate: Sat Oct 29 22:13:43 2022 +0900
[ISSUE #4072] fix plugin update bug by modifying config field setter (#4146)
* fix plugin: modify bug when updating
* fix style WhitespaceAfter
Co-authored-by: xiaoyu <[email protected]>
---
.../src/main/java/org/apache/shenyu/admin/model/dto/PluginDTO.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git
a/shenyu-admin/src/main/java/org/apache/shenyu/admin/model/dto/PluginDTO.java
b/shenyu-admin/src/main/java/org/apache/shenyu/admin/model/dto/PluginDTO.java
index 41b261905..3e3a6b89d 100644
---
a/shenyu-admin/src/main/java/org/apache/shenyu/admin/model/dto/PluginDTO.java
+++
b/shenyu-admin/src/main/java/org/apache/shenyu/admin/model/dto/PluginDTO.java
@@ -17,6 +17,7 @@
package org.apache.shenyu.admin.model.dto;
+import org.apache.commons.lang3.StringUtils;
import org.apache.shenyu.admin.mapper.PluginMapper;
import org.apache.shenyu.admin.validation.annotation.Existed;
@@ -118,6 +119,9 @@ public class PluginDTO implements Serializable {
* @param config config
*/
public void setConfig(final String config) {
+ if (StringUtils.isBlank(config)) {
+ return;
+ }
this.config = config;
}