Skip to content

Commit 8efcd63

Browse files
committed
fix
1 parent efa0fe4 commit 8efcd63

File tree

1 file changed

+2
-2
lines changed
  • iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/sink/protocol/opcua

1 file changed

+2
-2
lines changed

iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/sink/protocol/opcua/OpcUaSink.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,8 @@ private void customizeClient(final String nodeUrl, final PipeParameters paramete
307307
policy = SecurityPolicy.Aes256_Sha256_RsaPss;
308308
break;
309309
default:
310-
policy = null;
311-
break;
310+
throw new PipeException(
311+
"The security policy can only be 'None', 'Basic128Rsa15', 'Basic256', 'Basic256Sha256', 'Aes128_Sha256_RsaOaep' or 'Aes256_Sha256_RsaPss'.");
312312
}
313313

314314
final IdentityProvider provider;

0 commit comments

Comments
 (0)