Apache Lucene open-source search software
SOLR-11554: Support handling OPTIONS request for Hadoop authentication filter
Kevin Risdenb150202c852f
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex c135e903688..98755430e8b 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -244,6 +244,8 @@ Bug Fixes* SOLR-14205: Do not fail when given timeout to connectionImpl.isValid() = 0 (Nick Vercammen via Kevin Risden)+* SOLR-11554: Support handling OPTIONS request for Hadoop authentication filter (Peter Cseh via Kevin Risden)+Other Changes---------------------diff --git a/solr/core/src/java/org/apache/solr/servlet/HttpSolrCall.java b/solr/core/src/java/org/apache/solr/servlet/HttpSolrCall.javaindex 04e71b6329c..44418e45cca 100644--- a/solr/core/src/java/org/apache/solr/servlet/HttpSolrCall.java+++ b/solr/core/src/java/org/apache/solr/servlet/HttpSolrCall.java@@ -51,6 +51,7 @@ import org.apache.http.client.methods.HttpDelete;import org.apache.http.client.methods.HttpEntityEnclosingRequestBase;import org.apache.http.client.methods.HttpGet;import org.apache.http.client.methods.HttpHead;+import org.apache.http.client.methods.HttpOptions;import org.apache.http.client.methods.HttpPost;import org.apache.http.client.methods.HttpPut;import org.apache.http.client.methods.HttpRequestBase;@@ -684,6 +685,8 @@ public class HttpSolrCall {method = entityRequest;} else if ("DELETE".equals(req.getMethod())) {method = new HttpDelete(urlstr);+ } else if ("OPTIONS".equals(req.getMethod())) {+ method = new HttpOptions(urlstr);} else {throw new SolrException(SolrException.ErrorCode.SERVER_ERROR,"Unexpected method type: " + req.getMethod());