Apache Solr open-source search software
related to SOLR-203 and rev:535580. Some servlet containers (including resin) use an empty string as the getServletPath() if you are on the webapp root: http://localhost:8983/solr
Ryan McKinley17444901b3cf
diff --git a/src/webapp/src/org/apache/solr/servlet/SolrDispatchFilter.java b/src/webapp/src/org/apache/solr/servlet/SolrDispatchFilter.javaindex a0593fec448..cb320bae88a 100644--- a/src/webapp/src/org/apache/solr/servlet/SolrDispatchFilter.java+++ b/src/webapp/src/org/apache/solr/servlet/SolrDispatchFilter.java@@ -134,7 +134,10 @@ public class SolrDispatchFilter implements Filterpath = path.substring( 0, idx );}- SolrRequestHandler handler = core.getRequestHandler( path );+ SolrRequestHandler handler = null;+ if( path.length() > 1 ) { // don't match "" or "/" as valid path+ handler = core.getRequestHandler( path );+ }if( handler == null && handleSelect ) {if( "/select".equals( path ) || "/select/".equals( path ) ) {solrReq = parsers.parse( path, req );