长轮询参数校验逻辑,修复不存在的空命名空间配置校验失败bug (#11442)

This commit is contained in:
nov.lzf 2023-11-28 18:03:16 +08:00 committed by GitHub
parent bb7a6ce506
commit 99295f8846
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,7 +59,7 @@ public class ConfigListenerHttpParamExtractor extends AbstractHttpParamExtractor
for (String line : lines) {
ParamInfo paramInfo = new ParamInfo();
String[] words = line.split(Character.toString(WORD_SEPARATOR_CHAR));
if (words.length < 3 || words.length > 4) {
if (words.length < 2 || words.length > 4) {
throw new IllegalArgumentException("invalid probeModify");
}
paramInfo.setDataId(words[0]);