This is an automated email from the ASF dual-hosted git repository.

justinchen pushed a commit to branch client-opc
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/client-opc by this push:
     new 8efcd63ceaa fix
8efcd63ceaa is described below

commit 8efcd63ceaa24b9cc5e18e0804bc59ce0096dc1b
Author: Caideyipi <[email protected]>
AuthorDate: Mon Dec 22 16:30:09 2025 +0800

    fix
---
 .../java/org/apache/iotdb/db/pipe/sink/protocol/opcua/OpcUaSink.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/sink/protocol/opcua/OpcUaSink.java
 
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/sink/protocol/opcua/OpcUaSink.java
index 2c1ebf9a834..2856d2d0433 100644
--- 
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/sink/protocol/opcua/OpcUaSink.java
+++ 
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/sink/protocol/opcua/OpcUaSink.java
@@ -307,8 +307,8 @@ public class OpcUaSink implements PipeConnector {
         policy = SecurityPolicy.Aes256_Sha256_RsaPss;
         break;
       default:
-        policy = null;
-        break;
+        throw new PipeException(
+            "The security policy can only be 'None', 'Basic128Rsa15', 
'Basic256', 'Basic256Sha256', 'Aes128_Sha256_RsaOaep' or 
'Aes256_Sha256_RsaPss'.");
     }
 
     final IdentityProvider provider;

Reply via email to