Skip to content

Commit

Permalink
NIFI-10550 Fixing SSH Context Service validation for NifiRegistryFlow…
Browse files Browse the repository at this point in the history
…RegistryClient (apache#6451)
  • Loading branch information
simonbence authored Sep 26, 2022
1 parent 17084a1 commit e5059e0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ protected Collection<ValidationResult> customValidate(final ValidationContext co
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")
Expand Down

0 comments on commit e5059e0

Please sign in to comment.