Skip to content

Apache Lucene open-source search software

SOLR-350, removing old option to set core from query params (Responding to Hoss' comments on SOLR-428 let me see this)

Ryan McKinley9b79f1af3a0b
diff --git a/src/webapp/src/org/apache/solr/servlet/SolrDispatchFilter.java b/src/webapp/src/org/apache/solr/servlet/SolrDispatchFilter.java
index 2346613e5af..7b1d3944d35 100644
--- a/src/webapp/src/org/apache/solr/servlet/SolrDispatchFilter.java
+++ b/src/webapp/src/org/apache/solr/servlet/SolrDispatchFilter.java
@@ -182,8 +182,8 @@ public class SolrDispatchFilter implements Filter
SolrCore core = singlecore;
if( core == null ) {
// try to get the corename as a request parameter first
- String corename = request.getParameter("core");
- if( corename == null && path.startsWith( "/@" ) ) { // multicore
+ String corename = null;
+ if( path.startsWith( "/@" ) ) { // multicore
idx = path.indexOf( '/', 2 );
if( idx < 1 ) {
throw new SolrException( SolrException.ErrorCode.BAD_REQUEST,
@@ -191,8 +191,7 @@ public class SolrDispatchFilter implements Filter
}
corename = path.substring( 2, idx );
path = path.substring( idx );
- }
- if (corename != null) {
+
core = multicore.getCore( corename );
if( core == null ) {
throw new SolrException( SolrException.ErrorCode.BAD_REQUEST,