You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by wa...@apache.org on 2026/08/19 07:18:42 UTC
(inlong) branch master updated: [INLONG-12185][Manager] Add validation when saving clustertag (#12186)
This is an automated email from the ASF dual-hosted git repository.
fuweng11 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/inlong.git
The following commit(s) were added to refs/heads/master by this push:
new a6c7a6a670 [INLONG-12185][Manager] Add validation when saving clustertag (#12186)
a6c7a6a670 is described below
commit a6c7a6a670c3b935c68138d080f82f7d0f925dbc
Author: fuweng11 <76...@users.noreply.github.com>
AuthorDate: Wed Aug 19 15:18:37 2026 +0800
[INLONG-12185][Manager] Add validation when saving clustertag (#12186)
Co-authored-by: wakefu <wa...@tencent.com>
---
.../main/java/org/apache/inlong/manager/pojo/cluster/ClusterRequest.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/inlong-manager/manager-pojo/src/main/java/org/apache/inlong/manager/pojo/cluster/ClusterRequest.java b/inlong-manager/manager-pojo/src/main/java/org/apache/inlong/manager/pojo/cluster/ClusterRequest.java
index 0030a13810..103828719d 100644
--- a/inlong-manager/manager-pojo/src/main/java/org/apache/inlong/manager/pojo/cluster/ClusterRequest.java
+++ b/inlong-manager/manager-pojo/src/main/java/org/apache/inlong/manager/pojo/cluster/ClusterRequest.java
@@ -63,6 +63,7 @@ public abstract class ClusterRequest {
@ApiModelProperty(value = "Cluster tags, separated by commas")
@NotBlank(groups = {SaveValidation.class, UpdateByKeyValidation.class}, message = "clusterTags cannot be blank")
@Length(max = 512, message = "length must be less than or equal to 512")
+ @Pattern(regexp = "^[a-zA-Z0-9_,.-]+$", message = "clusterTags contains invalid characters")
private String clusterTags;
@ApiModelProperty(value = "Cluster url")