This is an automated email from the ASF dual-hosted git repository.
shuwenwei pushed a commit to branch authRefactor
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/authRefactor by this push:
new e6bf42dcf4f fix
e6bf42dcf4f is described below
commit e6bf42dcf4f11768e4c29a39ea566bea35838c12
Author: shuwenwei <[email protected]>
AuthorDate: Mon Sep 15 11:30:24 2025 +0800
fix
---
.../db/queryengine/plan/relational/security/TreeAccessCheckVisitor.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/security/TreeAccessCheckVisitor.java
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/security/TreeAccessCheckVisitor.java
index 088bc70f9b4..27671ec7488 100644
---
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/security/TreeAccessCheckVisitor.java
+++
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/security/TreeAccessCheckVisitor.java
@@ -707,6 +707,6 @@ public class TreeAccessCheckVisitor extends
StatementVisitor<TSStatus, TreeAcces
@Override
public TSStatus visitTestConnection(
TestConnectionStatement statement, TreeAccessCheckContext context) {
- return AuthorityChecker.checkSuperUserOrMaintain(userName);
+ return AuthorityChecker.checkSuperUserOrMaintain(context.userName);
}
}