You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by dw...@apache.org on 2019/12/03 12:07:30 UTC
[lucene-solr] branch master updated: Forbidden APIs: add missing
root locale.
This is an automated email from the ASF dual-hosted git repository.
dweiss pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
The following commit(s) were added to refs/heads/master by this push:
new 0f61aa9 Forbidden APIs: add missing root locale.
0f61aa9 is described below
commit 0f61aa9516f94d72ca0eba19209a588fa9ac999c
Author: Dawid Weiss <dw...@apache.org>
AuthorDate: Tue Dec 3 13:07:23 2019 +0100
Forbidden APIs: add missing root locale.
---
solr/core/src/test/org/apache/hadoop/http/HttpServer2.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/solr/core/src/test/org/apache/hadoop/http/HttpServer2.java b/solr/core/src/test/org/apache/hadoop/http/HttpServer2.java
index 5962beb..757b211 100644
--- a/solr/core/src/test/org/apache/hadoop/http/HttpServer2.java
+++ b/solr/core/src/test/org/apache/hadoop/http/HttpServer2.java
@@ -33,6 +33,7 @@ import java.util.Enumeration;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
+import java.util.Locale;
import java.util.Properties;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
@@ -395,13 +396,13 @@ public final class HttpServer2 implements FilterContainer {
SSLFactory.SSL_SERVER_NEED_CLIENT_AUTH_DEFAULT);
keyStore = sslConf.getTrimmed(SSLFactory.SSL_SERVER_KEYSTORE_LOCATION);
if (keyStore == null || keyStore.isEmpty()) {
- throw new IOException(String.format("Property %s not specified",
+ throw new IOException(String.format(Locale.ROOT, "Property %s not specified",
SSLFactory.SSL_SERVER_KEYSTORE_LOCATION));
}
keyStorePassword = getPasswordString(sslConf,
SSLFactory.SSL_SERVER_KEYSTORE_PASSWORD);
if (keyStorePassword == null) {
- throw new IOException(String.format("Property %s not specified",
+ throw new IOException(String.format(Locale.ROOT, "Property %s not specified",
SSLFactory.SSL_SERVER_KEYSTORE_PASSWORD));
}
keyStoreType = sslConf.get(SSLFactory.SSL_SERVER_KEYSTORE_TYPE,