This is an automated email from the ASF dual-hosted git repository.
dsmiley pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/solr.git
The following commit(s) were added to refs/heads/branch_9x by this push:
new 003e023f65a SOLR-17741: Deprecated addHttpRequestToContext (#3333)
003e023f65a is described below
commit 003e023f65a7e9df967e12961b1fcf58b576fd6f
Author: David Smiley <[email protected]>
AuthorDate: Mon Apr 21 23:34:01 2025 +0900
SOLR-17741: Deprecated addHttpRequestToContext (#3333)
Removed in 10.
---
solr/CHANGES.txt | 2 ++
solr/core/src/java/org/apache/solr/core/SolrConfig.java | 4 ++++
2 files changed, 6 insertions(+)
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 4e504b2fb90..17f0dfc2e98 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -128,6 +128,8 @@ Other Changes
* SOLR-17651: Add System.exit() in forbidden APIs, and make sure CLI unit
tests never call it. (Pierre Salagnac)
+* SOLR-17741: Deprecated 'addHttpRequestToContext', removed in 10. (David
Smiley)
+
================== 9.8.1 ==================
Bug Fixes
---------------------
diff --git a/solr/core/src/java/org/apache/solr/core/SolrConfig.java
b/solr/core/src/java/org/apache/solr/core/SolrConfig.java
index 7582c58b9aa..0291cc7986a 100644
--- a/solr/core/src/java/org/apache/solr/core/SolrConfig.java
+++ b/solr/core/src/java/org/apache/solr/core/SolrConfig.java
@@ -69,6 +69,7 @@ import org.apache.solr.common.util.EnvUtils;
import org.apache.solr.common.util.IOUtils;
import org.apache.solr.common.util.Utils;
import org.apache.solr.handler.component.SearchComponent;
+import org.apache.solr.logging.DeprecationLog;
import org.apache.solr.pkg.PackageListeners;
import org.apache.solr.pkg.SolrPackageLoader;
import org.apache.solr.request.SolrRequestHandler;
@@ -382,6 +383,9 @@ public class SolrConfig implements MapSerializable {
handleSelect = get("requestDispatcher").boolAttr("handleSelect", false);
addHttpRequestToContext =
requestParsersNode.boolAttr("addHttpRequestToContext", false);
+ if (addHttpRequestToContext) {
+ DeprecationLog.log("addHttpRequestToContext", "addHttpRequestToContext
is deprecated");
+ }
List<PluginInfo> argsInfos = getPluginInfos(InitParams.class.getName());
if (argsInfos != null) {