Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-1233: remove /select?qt=/whatever restriction on /-prefixed request handlers.

Erik Hatcherd48c9f39e840
diff --git a/CHANGES.txt b/CHANGES.txt
index 5ef994001e0..6c7a1972fc4 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -516,6 +516,9 @@ Other Changes
39. SOLR-1151: add dynamic copy field and maxChars example to example schema.xml.
(Peter Wolanin, Mark Miller)
+40. SOLR-1233: remove /select?qt=/whatever restriction on /-prefixed request handlers.
+ (ehatcher)
+
Build
----------------------
1. SOLR-776: Added in ability to sign artifacts via Ant for releases (gsingers)
diff --git a/src/webapp/src/org/apache/solr/servlet/SolrDispatchFilter.java b/src/webapp/src/org/apache/solr/servlet/SolrDispatchFilter.java
index 86f2f5d1728..a38fb54655a 100644
--- a/src/webapp/src/org/apache/solr/servlet/SolrDispatchFilter.java
+++ b/src/webapp/src/org/apache/solr/servlet/SolrDispatchFilter.java
@@ -211,9 +211,6 @@ public class SolrDispatchFilter implements Filter
if( "/select".equals( path ) || "/select/".equals( path ) ) {
solrReq = parser.parse( core, path, req );
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 );
if( handler == null ) {
throw new SolrException( SolrException.ErrorCode.BAD_REQUEST, "unknown handler: "+qt);