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:
Erik Hatcher 2009-06-19 13:52:54 +00:00
parent 5e3152f9b3
commit d48c9f39e8
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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);