From 6ddd745f945c011facfd98f26b794450e275b14d Mon Sep 17 00:00:00 2001 From: liuliaozhong Date: Wed, 17 May 2023 11:45:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20fast=5Ftransfer=5Ffile=20API=20=E5=88=86?= =?UTF-8?q?=E5=8F=91=E6=96=87=E4=BB=B6=EF=BC=8C=E5=A6=82=E6=9E=9C=E6=BA=90?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E4=B8=AD=E7=9A=84=E6=96=87=E4=BB=B6=E5=90=8D?= =?UTF-8?q?=E5=8C=85=E5=90=AB=E7=A9=BA=E6=A0=BC=EF=BC=8C=E4=BC=9A=E6=8A=A5?= =?UTF-8?q?=E9=94=99=20#812?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/tencent/bk/job/common/util/FilePathValidateUtil.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/backend/commons/common-utils/src/main/java/com/tencent/bk/job/common/util/FilePathValidateUtil.java b/src/backend/commons/common-utils/src/main/java/com/tencent/bk/job/common/util/FilePathValidateUtil.java index ee7f3e9cd7..fdc1aa3bd3 100644 --- a/src/backend/commons/common-utils/src/main/java/com/tencent/bk/job/common/util/FilePathValidateUtil.java +++ b/src/backend/commons/common-utils/src/main/java/com/tencent/bk/job/common/util/FilePathValidateUtil.java @@ -52,6 +52,8 @@ public static boolean validateFileSystemAbsolutePath(String path) { if (!result) { // 路径不合法 log.warn("The path {} is invalid and the verification fails", path); + // 路径校验失败输出日志,验证阶段不拦截返回true + result = true; } return result; }