NIFI-10550 Fixing SSH Context Service validation for NifiRegistryFlowRegistryClient (#6451)

This commit is contained in:
simonbence 2022-09-26 22:28:00 +02:00 committed by GitHub
parent 17084a1f09
commit e5059e0514
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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")