SOLR-14748: Correct condition on startup auth/ssl logging

This commit is contained in:
Jason Gerlowski 2020-08-12 15:09:49 -04:00
parent e72a0d66c6
commit a6515ca38f
2 changed files with 3 additions and 1 deletions

View File

@ -178,6 +178,8 @@ Bug Fixes
* SOLR-14657: Improve error handling in IndexReader realted metrics that were causing scary ERROR logging * SOLR-14657: Improve error handling in IndexReader realted metrics that were causing scary ERROR logging
if metrics were requested while Solr was in the process of closing/re-opening a new IndexReader. (hossman) if metrics were requested while Solr was in the process of closing/re-opening a new IndexReader. (hossman)
* SOLR-14748: Fix incorrect auth/SSL startup logging (Jason Gerlowski)
Other Changes Other Changes
--------------------- ---------------------

View File

@ -953,7 +953,7 @@ public class CoreContainer {
(authorizationPlugin != null) ? "enabled" : "disabled"); (authorizationPlugin != null) ? "enabled" : "disabled");
} }
if (authenticationPlugin !=null && StringUtils.isNotEmpty(System.getProperty("solr.jetty.https.port"))) { if (authenticationPlugin != null && StringUtils.isEmpty(System.getProperty("solr.jetty.https.port"))) {
log.warn("Solr authentication is enabled, but SSL is off. Consider enabling SSL to protect user credentials and data with encryption."); log.warn("Solr authentication is enabled, but SSL is off. Consider enabling SSL to protect user credentials and data with encryption.");
} }
} }