From d48c9f39e8402bf1853f9cc93840be652bb78af4 Mon Sep 17 00:00:00 2001 From: Erik Hatcher Date: Fri, 19 Jun 2009 13:52:54 +0000 Subject: [PATCH] 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 --- CHANGES.txt | 3 +++ src/webapp/src/org/apache/solr/servlet/SolrDispatchFilter.java | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) 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);