This is an automated email from the ASF dual-hosted git repository. jackietien pushed a commit to branch rc/2.0.7 in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit 71c5d7ef01110984f898e0315d112f7a2830502e Author: Caideyipi <[email protected]> AuthorDate: Fri Feb 6 14:48:29 2026 +0800 Pipe: Changed the separator check semantic for pipes / pipe plugins (#17175) * fix * sep --- .../iotdb/pipe/it/dual/treemodel/auto/basic/IoTDBPipeSyntaxIT.java | 2 +- .../src/main/java/org/apache/iotdb/commons/utils/FileUtils.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/integration-test/src/test/java/org/apache/iotdb/pipe/it/dual/treemodel/auto/basic/IoTDBPipeSyntaxIT.java b/integration-test/src/test/java/org/apache/iotdb/pipe/it/dual/treemodel/auto/basic/IoTDBPipeSyntaxIT.java index eaa0300d6ef..97b35ff1df7 100644 --- a/integration-test/src/test/java/org/apache/iotdb/pipe/it/dual/treemodel/auto/basic/IoTDBPipeSyntaxIT.java +++ b/integration-test/src/test/java/org/apache/iotdb/pipe/it/dual/treemodel/auto/basic/IoTDBPipeSyntaxIT.java @@ -335,7 +335,7 @@ public class IoTDBPipeSyntaxIT extends AbstractPipeDualTreeModelAutoIT { public void testDirectoryErrors() throws SQLException { try (final Connection connection = senderEnv.getConnection(); final Statement statement = connection.createStatement()) { - List<String> wrongDirs = Arrays.asList(".", "..", "./hackYou", ".\\hackYouTwice"); + List<String> wrongDirs = Arrays.asList(".", "..", "/hackYou", "..\\hackYouTwice"); if (SystemUtils.IS_OS_WINDOWS) { wrongDirs = new ArrayList<>(wrongDirs); wrongDirs.add("BombWindows/:*?"); diff --git a/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/utils/FileUtils.java b/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/utils/FileUtils.java index 044375fb2bd..a79d48662f8 100644 --- a/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/utils/FileUtils.java +++ b/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/utils/FileUtils.java @@ -571,7 +571,7 @@ public class FileUtils { } public static String getIllegalError4Directory(final String path) { - if (path.equals(".") || path.equals("..") || path.contains("./") || path.contains(".\\")) { + if (path.equals(".") || path.equals("..") || path.contains("/") || path.contains("\\")) { return ILLEGAL_PATH_MESSAGE; } if (!WindowsOSUtils.isLegalPathSegment4Windows(path)) {
