This is an automated email from the ASF dual-hosted git repository.
jiangtian pushed a commit to branch dev/1.3
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/dev/1.3 by this push:
new 42ca2f37a74 Pipe: Changed the separator check semantic for pipes /
pipe plugins (#17175) (#17183)
42ca2f37a74 is described below
commit 42ca2f37a74ebb3e8475a3a11b21b2db1b29c9aa
Author: Caideyipi <[email protected]>
AuthorDate: Mon Feb 9 14:15:06 2026 +0800
Pipe: Changed the separator check semantic for pipes / pipe plugins
(#17175) (#17183)
* fix
* sep
---
.../java/org/apache/iotdb/pipe/it/autocreate/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/autocreate/IoTDBPipeSyntaxIT.java
b/integration-test/src/test/java/org/apache/iotdb/pipe/it/autocreate/IoTDBPipeSyntaxIT.java
index 4818378c2f5..37ad97c2e57 100644
---
a/integration-test/src/test/java/org/apache/iotdb/pipe/it/autocreate/IoTDBPipeSyntaxIT.java
+++
b/integration-test/src/test/java/org/apache/iotdb/pipe/it/autocreate/IoTDBPipeSyntaxIT.java
@@ -322,7 +322,7 @@ public class IoTDBPipeSyntaxIT extends
AbstractPipeDualAutoIT {
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 7c68d7d376f..fe413bf85ef 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
@@ -556,7 +556,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)) {