Skip to content

Commit

Permalink
Revert /solr fix, always normalize
Browse files Browse the repository at this point in the history
  • Loading branch information
janhoy committed Oct 18, 2024
1 parent e80504a commit c660d0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions solr/core/src/java/org/apache/solr/cli/PostTool.java
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,7 @@ public void runImpl(CommandLine cli) throws Exception {
throw new IllegalArgumentException(
"Must specify -c / --name parameter with --solr-url to post documents.");
}
String url =
SolrCLI.normalizeSolrUrl(cli) + "/solr/" + cli.getOptionValue("name") + "/update";
String url = SolrCLI.normalizeSolrUrl(cli) + "/" + cli.getOptionValue("name") + "/update";
solrUpdateUrl = new URI(url);

} else if (cli.hasOption("solr-update-url")) {
Expand Down
2 changes: 1 addition & 1 deletion solr/core/src/java/org/apache/solr/cli/SolrCLI.java
Original file line number Diff line number Diff line change
Expand Up @@ -792,10 +792,10 @@ public static String normalizeSolrUrl(CommandLine cli) throws Exception {

String firstLiveNode = liveNodes.iterator().next();
solrUrl = ZkStateReader.from(cloudSolrClient).getBaseUrlForNodeName(firstLiveNode);
solrUrl = normalizeSolrUrl(solrUrl, false);
}
}
}
solrUrl = normalizeSolrUrl(solrUrl, false);
return solrUrl;
}

Expand Down

0 comments on commit c660d0a

Please sign in to comment.