mirror of https://github.com/apache/lucene.git
SOLR-1233: remove /select?qt=/whatever restriction on /-prefixed request handlers.
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@786508 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5e3152f9b3
commit
d48c9f39e8
|
@ -516,6 +516,9 @@ Other Changes
|
||||||
39. SOLR-1151: add dynamic copy field and maxChars example to example schema.xml.
|
39. SOLR-1151: add dynamic copy field and maxChars example to example schema.xml.
|
||||||
(Peter Wolanin, Mark Miller)
|
(Peter Wolanin, Mark Miller)
|
||||||
|
|
||||||
|
40. SOLR-1233: remove /select?qt=/whatever restriction on /-prefixed request handlers.
|
||||||
|
(ehatcher)
|
||||||
|
|
||||||
Build
|
Build
|
||||||
----------------------
|
----------------------
|
||||||
1. SOLR-776: Added in ability to sign artifacts via Ant for releases (gsingers)
|
1. SOLR-776: Added in ability to sign artifacts via Ant for releases (gsingers)
|
||||||
|
|
|
@ -211,9 +211,6 @@ public class SolrDispatchFilter implements Filter
|
||||||
if( "/select".equals( path ) || "/select/".equals( path ) ) {
|
if( "/select".equals( path ) || "/select/".equals( path ) ) {
|
||||||
solrReq = parser.parse( core, path, req );
|
solrReq = parser.parse( core, path, req );
|
||||||
String qt = solrReq.getParams().get( CommonParams.QT );
|
String qt = solrReq.getParams().get( CommonParams.QT );
|
||||||
if( qt != null && qt.startsWith( "/" ) ) {
|
|
||||||
throw new SolrException( SolrException.ErrorCode.BAD_REQUEST, "Invalid query type. Do not use /select to access: "+qt);
|
|
||||||
}
|
|
||||||
handler = core.getRequestHandler( qt );
|
handler = core.getRequestHandler( qt );
|
||||||
if( handler == null ) {
|
if( handler == null ) {
|
||||||
throw new SolrException( SolrException.ErrorCode.BAD_REQUEST, "unknown handler: "+qt);
|
throw new SolrException( SolrException.ErrorCode.BAD_REQUEST, "unknown handler: "+qt);
|
||||||
|
|
Loading…
Reference in New Issue