mirror of https://github.com/apache/lucene.git
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:
parent
592b402ab5
commit
d0ab5f6174
|
@ -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
|
||||
----------------------
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue