From 65ad408d03599eb34f21d0b879e9948869e88fdf Mon Sep 17 00:00:00 2001 From: Sunrisea <49605583+Sunrisea@users.noreply.github.com> Date: Tue, 25 Jul 2023 09:33:44 +0800 Subject: [PATCH] For #10734,fix the param check rule (#10826) --- .../com/alibaba/nacos/common/paramcheck/ParamCheckRules.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/com/alibaba/nacos/common/paramcheck/ParamCheckRules.java b/common/src/main/java/com/alibaba/nacos/common/paramcheck/ParamCheckRules.java index 46391c279..6bd98d6eb 100644 --- a/common/src/main/java/com/alibaba/nacos/common/paramcheck/ParamCheckRules.java +++ b/common/src/main/java/com/alibaba/nacos/common/paramcheck/ParamCheckRules.java @@ -31,7 +31,7 @@ public class ParamCheckRules { public static final String NAMESPACE_ID_PATTERN_STRING = "^[\\w-]+"; - public static final int MAX_DATA_ID_LENGTH = 512; + public static final int MAX_DATA_ID_LENGTH = 256; public static final String DATA_ID_PATTERN_STRING = "^[a-zA-Z0-9-_:\\.]*$"; @@ -39,7 +39,7 @@ public class ParamCheckRules { public static final String SERVICE_NAME_PATTERN_STRING = "^(?!@).((?!@@)[^\\u4E00-\\u9FA5])*$"; - public static final int MAX_GROUP_LENGTH = 64; + public static final int MAX_GROUP_LENGTH = 128; public static final String GROUP_PATTERN_STRING = "^[a-zA-Z0-9-_:\\.]*$";