You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "senthh (via GitHub)" <gi...@apache.org> on 2023/05/30 05:35:56 UTC

[GitHub] [solr] senthh commented on a diff in pull request #1669: SOLR-16826: Validate if authentication plugin class name are valid

senthh commented on code in PR #1669:
URL: https://github.com/apache/solr/pull/1669#discussion_r1209726203


##########
solr/core/src/java/org/apache/solr/core/CoreContainer.java:
##########
@@ -547,7 +552,12 @@ private synchronized void initializeAuthenticationPlugin(
 
     // Initialize the plugin
     if (pluginClassName != null) {
-      log.info("Initializing authentication plugin: {}", pluginClassName);
+      if (authPluginList.contains(pluginClassName)) {
+        log.info("Initializing authentication plugin: {}", pluginClassName);
+      } else {
+        log.warn("Wrong Authentication plugin {} configured." +

Review Comment:
   Yes Eric, I am aiming this PR just to validate solr's inbuilt Auth plugins write WARN logs if it is not matching as per Solr 9+ documentation. It will help users to, easily, find what mistake they commited.
   
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org