You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by ma...@apache.org on 2022/09/26 20:28:06 UTC

[nifi] branch main updated: NIFI-10550 Fixing SSH Context Service validation for NifiRegistryFlowRegistryClient (#6451)

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

markap14 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git


The following commit(s) were added to refs/heads/main by this push:
     new e5059e0514 NIFI-10550 Fixing SSH Context Service validation for NifiRegistryFlowRegistryClient (#6451)
e5059e0514 is described below

commit e5059e0514bf18b854fd833d3c5350d0b1a956ba
Author: simonbence <61...@users.noreply.github.com>
AuthorDate: Mon Sep 26 22:28:00 2022 +0200

    NIFI-10550 Fixing SSH Context Service validation for NifiRegistryFlowRegistryClient (#6451)
---
 .../org/apache/nifi/registry/flow/NifiRegistryFlowRegistryClient.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nifi-nar-bundles/nifi-flow-registry-client-bundle/nifi-flow-registry-client-services/src/main/java/org/apache/nifi/registry/flow/NifiRegistryFlowRegistryClient.java b/nifi-nar-bundles/nifi-flow-registry-client-bundle/nifi-flow-registry-client-services/src/main/java/org/apache/nifi/registry/flow/NifiRegistryFlowRegistryClient.java
index c881d6ea20..8b7a45c801 100644
--- a/nifi-nar-bundles/nifi-flow-registry-client-bundle/nifi-flow-registry-client-services/src/main/java/org/apache/nifi/registry/flow/NifiRegistryFlowRegistryClient.java
+++ b/nifi-nar-bundles/nifi-flow-registry-client-bundle/nifi-flow-registry-client-services/src/main/java/org/apache/nifi/registry/flow/NifiRegistryFlowRegistryClient.java
@@ -133,7 +133,7 @@ public class NifiRegistryFlowRegistryClient extends AbstractFlowRegistryClient {
             final SSLContextService sslContextService = context.getProperty(SSL_CONTEXT_SERVICE).asControllerService(SSLContextService.class);
 
 
-            if (!(sslContextService.isTrustStoreConfigured() ^ sslContextService.isKeyStoreConfigured())) {
+            if (sslContextService.isTrustStoreConfigured() ^ sslContextService.isKeyStoreConfigured()) {
                 result.add(new ValidationResult.Builder().subject(this.getClass().getSimpleName())
                     .valid(false)
                     .explanation("It is expected to either set all the properties for the SSLContext or set none")