SOLR-2631: PingRequestHandler should not allow to ping itsself using "qt" param to prevent infinite loop

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1142179 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Uwe Schindler 2011-07-02 08:59:58 +00:00
parent 592b402ab5
commit d0ab5f6174
2 changed files with 8 additions and 0 deletions

View File

@ -297,6 +297,9 @@ Bug Fixes
* SOLR-2625: TermVectorComponent throws NPE if TF-IDF option is used without DF
option. (Daniel Erenrich, Simon Willnauer)
* SOLR-2631: PingRequestHandler should not allow to ping itsself using "qt"
param to prevent infinite loop. (Edoardo Tosca, Uwe Schindler)
Other Changes
----------------------

View File

@ -56,6 +56,11 @@ public class PingRequestHandler extends RequestHandlerBase
"Unknown RequestHandler: "+qt );
}
if( handler instanceof PingRequestHandler ) {
throw new SolrException(SolrException.ErrorCode.BAD_REQUEST,
"Cannot execute the PingRequestHandler recursively" );
}
// Execute the ping query and catch any possible exception
Throwable ex = null;
try {