mirror of https://github.com/apache/lucene.git
SOLR-9188: Trying revert a change and fix the unexpected IOException in jenkins failure.
This commit is contained in:
parent
0ed8c2a7ad
commit
757c245bee
|
@ -299,10 +299,15 @@ public class SolrDispatchFilter extends BaseSolrFilter {
|
||||||
boolean requestContinues = false;
|
boolean requestContinues = false;
|
||||||
final AtomicBoolean isAuthenticated = new AtomicBoolean(false);
|
final AtomicBoolean isAuthenticated = new AtomicBoolean(false);
|
||||||
AuthenticationPlugin authenticationPlugin = cores.getAuthenticationPlugin();
|
AuthenticationPlugin authenticationPlugin = cores.getAuthenticationPlugin();
|
||||||
if (authenticationPlugin == null ||
|
if (authenticationPlugin == null) {
|
||||||
PKIAuthenticationPlugin.PATH.equals(((HttpServletRequest)request).getPathInfo())) {
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
|
try {
|
||||||
|
if (PKIAuthenticationPlugin.PATH.equals(((HttpServletRequest) request).getPathInfo())) return true;
|
||||||
|
} catch (Exception e) {
|
||||||
|
log.error("Unexpected error ", e);
|
||||||
|
}
|
||||||
|
|
||||||
//special case when solr is securing inter-node requests
|
//special case when solr is securing inter-node requests
|
||||||
String header = ((HttpServletRequest) request).getHeader(PKIAuthenticationPlugin.HEADER);
|
String header = ((HttpServletRequest) request).getHeader(PKIAuthenticationPlugin.HEADER);
|
||||||
if (header != null && cores.getPkiAuthenticationPlugin() != null)
|
if (header != null && cores.getPkiAuthenticationPlugin() != null)
|
||||||
|
|
Loading…
Reference in New Issue