lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From no...@apache.org
Subject svn commit: r1700840 - in /lucene/dev/trunk/solr: CHANGES.txt core/src/java/org/apache/solr/core/RequestHandlers.java
Date Wed, 02 Sep 2015 15:13:39 GMT
Author: noble
Date: Wed Sep  2 15:13:27 2015
New Revision: 1700840

URL: http://svn.apache.org/r1700840
Log:
SOLR-7984: wrong and misleading error message 'no default request handler is registered'

Modified:
    lucene/dev/trunk/solr/CHANGES.txt
    lucene/dev/trunk/solr/core/src/java/org/apache/solr/core/RequestHandlers.java

Modified: lucene/dev/trunk/solr/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/CHANGES.txt?rev=1700840&r1=1700839&r2=1700840&view=diff
==============================================================================
--- lucene/dev/trunk/solr/CHANGES.txt (original)
+++ lucene/dev/trunk/solr/CHANGES.txt Wed Sep  2 15:13:27 2015
@@ -190,6 +190,8 @@ Bug Fixes
 
 * SOLR-8004: RuleBasedAuthorization plugin does not work for the collection-admin-edit permission
(noble)
 
+* SOLR-7984: wrong and misleading error message 'no default request handler is registered'
(noble, hossman)
+
 
 Optimizations
 ----------------------

Modified: lucene/dev/trunk/solr/core/src/java/org/apache/solr/core/RequestHandlers.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/java/org/apache/solr/core/RequestHandlers.java?rev=1700840&r1=1700839&r2=1700840&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/java/org/apache/solr/core/RequestHandlers.java (original)
+++ lucene/dev/trunk/solr/core/src/java/org/apache/solr/core/RequestHandlers.java Wed Sep
 2 15:13:27 2015
@@ -130,12 +130,11 @@ public final class RequestHandlers {
     handlers.init(Collections.emptyMap(),core, modifiedInfos);
     handlers.alias(handlers.getDefault(), "");
     log.info("Registered paths: {}" , StrUtils.join(new ArrayList<>(handlers.keySet())
, ',' ));
-    if(!handlers.alias( "/select","")){
-      if(!handlers.alias( "standard","")){
+    if (handlers.get("") == null && !handlers.alias("/select", "")) {
+      if (handlers.get("") == null && !handlers.alias("standard", "")) {
         log.warn("no default request handler is registered (either '/select' or 'standard')");
       }
     }
-
   }
 
   private PluginInfo applyInitParams(SolrConfig config, PluginInfo info) {



Mime
View raw message