You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by ho...@apache.org on 2025/01/29 20:18:00 UTC
(solr) 02/02: Remove errant 'wt'-checking for file-fetching
This is an automated email from the ASF dual-hosted git repository.
houston pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/solr.git
commit 56dde3cc5429562fa6d309749cf263166c6c98b8
Author: Jason Gerlowski <ge...@apache.org>
AuthorDate: Wed Dec 4 12:27:59 2024 -0500
Remove errant 'wt'-checking for file-fetching
(cherry picked from commit 4510baf059f6e5e22b677f3982fa25fa81d074aa)
---
.../src/java/org/apache/solr/handler/ReplicationHandler.java | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/solr/core/src/java/org/apache/solr/handler/ReplicationHandler.java b/solr/core/src/java/org/apache/solr/handler/ReplicationHandler.java
index 4d7e4a34f22..c6a134e5cdf 100644
--- a/solr/core/src/java/org/apache/solr/handler/ReplicationHandler.java
+++ b/solr/core/src/java/org/apache/solr/handler/ReplicationHandler.java
@@ -75,7 +75,6 @@ import org.apache.solr.client.api.model.IndexVersionResponse;
import org.apache.solr.client.api.model.SolrJerseyResponse;
import org.apache.solr.common.SolrException;
import org.apache.solr.common.SolrException.ErrorCode;
-import org.apache.solr.common.params.CommonParams;
import org.apache.solr.common.params.CoreAdminParams;
import org.apache.solr.common.params.ModifiableSolrParams;
import org.apache.solr.common.params.SolrParams;
@@ -342,14 +341,6 @@ public class ReplicationHandler extends RequestHandlerBase
return;
}
- if (solrParams.getParams(CommonParams.WT) == null) {
- reportErrorOnResponse(
- rsp,
- "Missing wt parameter",
- new SolrException(SolrException.ErrorCode.BAD_REQUEST, "wt not specified in request"));
- return;
- }
-
coreReplicationAPI.fetchFile(
fileName,
dirType,