mirror of https://github.com/apache/lucene.git
SOLR-350, removing old option to set core from query params (Responding to Hoss' comments on SOLR-428 let me see this)
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@602342 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
072e526155
commit
9b79f1af3a
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue