SOLR-9188: Trying revert a change and fix the unexpected IOException in jenkins failure.

This commit is contained in:
Noble Paul 2016-08-29 13:07:03 +05:30
parent 0ed8c2a7ad
commit 757c245bee
1 changed files with 7 additions and 2 deletions

View File

@ -299,10 +299,15 @@ public class SolrDispatchFilter extends BaseSolrFilter {
boolean requestContinues = false;
final AtomicBoolean isAuthenticated = new AtomicBoolean(false);
AuthenticationPlugin authenticationPlugin = cores.getAuthenticationPlugin();
if (authenticationPlugin == null ||
PKIAuthenticationPlugin.PATH.equals(((HttpServletRequest)request).getPathInfo())) {
if (authenticationPlugin == null) {
return true;
} 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
String header = ((HttpServletRequest) request).getHeader(PKIAuthenticationPlugin.HEADER);
if (header != null && cores.getPkiAuthenticationPlugin() != null)