Skip to content

Commit

Permalink
Remove errant 'wt'-checking for file-fetching
Browse files Browse the repository at this point in the history
  • Loading branch information
gerlowskija committed Dec 4, 2024
1 parent c1062d9 commit 4510baf
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@
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;
Expand Down Expand Up @@ -347,14 +346,6 @@ private void getFileStream(SolrParams solrParams, SolrQueryResponse rsp, SolrQue
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,
Expand Down

0 comments on commit 4510baf

Please sign in to comment.