Author: ehatcher
Date: Fri Jun 19 13:52:54 2009
New Revision: 786508
URL: http://svn.apache.org/viewvc?rev=786508&view=rev
Log:
SOLR-1233: remove /select?qt=/whatever restriction on /-prefixed request
handlers.
Modified:
lucene/solr/trunk/CHANGES.txt
lucene/solr/trunk/src/webapp/src/org/apache/solr/servlet/SolrDispatchFilter.java
Modified: lucene/solr/trunk/CHANGES.txt
URL:
http://svn.apache.org/viewvc/lucene/solr/trunk/CHANGES.txt?rev=786508&r1=786507&r2=786508&view=diff
==============================================================================
--- lucene/solr/trunk/CHANGES.txt (original)
+++ lucene/solr/trunk/CHANGES.txt Fri Jun 19 13:52:54 2009
@@ -516,6 +516,9 @@
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)
Modified:
lucene/solr/trunk/src/webapp/src/org/apache/solr/servlet/SolrDispatchFilter.java
URL:
http://svn.apache.org/viewvc/lucene/solr/trunk/src/webapp/src/org/apache/solr/servlet/SolrDispatchFilter.java?rev=786508&r1=786507&r2=786508&view=diff
==============================================================================
---
lucene/solr/trunk/src/webapp/src/org/apache/solr/servlet/SolrDispatchFilter.java
(original)
+++
lucene/solr/trunk/src/webapp/src/org/apache/solr/servlet/SolrDispatchFilter.java
Fri Jun 19 13:52:54 2009
@@ -211,9 +211,6 @@
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);