mirror of https://github.com/apache/lucene.git
try to fix erroneous qt restriction
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1306711 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
93522a23fd
commit
a9f2dbec17
|
@ -1543,8 +1543,9 @@ public final class SolrCore implements SolrInfoMBean {
|
||||||
toLog.add("path", req.getContext().get("path"));
|
toLog.add("path", req.getContext().get("path"));
|
||||||
toLog.add("params", "{" + req.getParamString() + "}");
|
toLog.add("params", "{" + req.getParamString() + "}");
|
||||||
|
|
||||||
if (req.getParams().getBool(ShardParams.IS_SHARD,false) && !(handler instanceof SearchHandler))
|
// TODO: this doesn't seem to be working correctly and causes problems with the example server and distrib (for example /spell)
|
||||||
throw new SolrException(SolrException.ErrorCode.BAD_REQUEST,"isShard is only acceptable with search handlers");
|
// if (req.getParams().getBool(ShardParams.IS_SHARD,false) && !(handler instanceof SearchHandler))
|
||||||
|
// throw new SolrException(SolrException.ErrorCode.BAD_REQUEST,"isShard is only acceptable with search handlers");
|
||||||
|
|
||||||
handler.handleRequest(req,rsp);
|
handler.handleRequest(req,rsp);
|
||||||
setResponseHeaderValues(handler,req,rsp);
|
setResponseHeaderValues(handler,req,rsp);
|
||||||
|
|
|
@ -294,7 +294,7 @@ public class TestDistributedSearch extends BaseDistributedSearchTestCase {
|
||||||
try {
|
try {
|
||||||
ignoreException("isShard is only acceptable");
|
ignoreException("isShard is only acceptable");
|
||||||
query("q","*:*","shards.qt","/update","stream.body","<delete><query>*:*</query></delete>");
|
query("q","*:*","shards.qt","/update","stream.body","<delete><query>*:*</query></delete>");
|
||||||
fail();
|
// fail();
|
||||||
} catch (SolrException e) {
|
} catch (SolrException e) {
|
||||||
//expected
|
//expected
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue