[BugFix] Fix Comfiguration类中checkPath方法未生效的问题

checkPath的方法逻辑是将path按照"."分割,然后判断路径层次之间不能出现空白字符,但误写成了将"."使用空格分割(Null separator means use whitespace),因此这段代码永远不会抛出异常。
This commit is contained in:
海明 2024-06-26 20:45:25 +08:00 committed by GitHub
parent f1c20abc7d
commit b0224dc01d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1047,7 +1047,7 @@ public class Configuration {
"系统编程错误, 该异常代表系统编程错误, 请联系DataX开发团队!.");
}
for (final String each : StringUtils.split(".")) {
for (final String each : StringUtils.split(path, ".")) {
if (StringUtils.isBlank(each)) {
throw new IllegalArgumentException(String.format(
"系统编程错误, 路径[%s]不合法, 路径层次之间不能出现空白字符 .", path));