Apache Lucene open-source search software
SOLR-6655: Use root locale in String.format
Shalin Shekhar Mangaraee9727becd9
diff --git a/solr/core/src/java/org/apache/solr/util/SimplePostTool.java b/solr/core/src/java/org/apache/solr/util/SimplePostTool.javaindex 354cf230d83..1b85129b567 100644--- a/solr/core/src/java/org/apache/solr/util/SimplePostTool.java+++ b/solr/core/src/java/org/apache/solr/util/SimplePostTool.java@@ -221,7 +221,7 @@ public class SimplePostTool {String port = System.getProperty("port", DEFAULT_POST_PORT);String core = System.getProperty("c", DEFAULT_POST_CORE);- urlStr = System.getProperty("url", String.format("http://%s:%s/solr/%s/update", host, port, core));+ urlStr = System.getProperty("url", String.format("http://%s:%s/solr/%s/update", host, port, core, Locale.ROOT));urlStr = SimplePostTool.appendParam(urlStr, params);URL url = new URL(urlStr);boolean auto = isOn(System.getProperty("auto", DEFAULT_AUTO));@@ -372,7 +372,7 @@ public class SimplePostTool {"Supported System Properties and their defaults:\n"+" -Ddata=files|web|args|stdin (default=" + DEFAULT_DATA_MODE + ")\n"+" -Dtype=<content-type> (default=" + DEFAULT_CONTENT_TYPE + ")\n"+- " -Durl=<solr-update-url> (default=" + String.format("http://%s:%s/solr/%s/update", DEFAULT_POST_HOST, DEFAULT_POST_PORT, DEFAULT_POST_CORE) + ")\n"++ " -Durl=<solr-update-url> (default=" + String.format("http://%s:%s/solr/%s/update", DEFAULT_POST_HOST, DEFAULT_POST_PORT, DEFAULT_POST_CORE, Locale.ROOT) + ")\n"+" -Dhost=<host> (default: " + DEFAULT_POST_HOST+ ")\n"+" -Dport=<port> (default: " + DEFAULT_POST_PORT+ ")\n"+" -Dc=<core/collection> (default: " + DEFAULT_POST_CORE+ ")\n"+