From c60cd2529b9c9d3e57e23e67e7c55a75269a23f9 Mon Sep 17 00:00:00 2001 From: Gregory Chanan Date: Tue, 2 Aug 2016 11:27:12 -0400 Subject: [PATCH] SOLR-9200: Prepare Locale before starting MiniKdc --- .../test/org/apache/solr/cloud/KerberosTestServices.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/solr/core/src/test/org/apache/solr/cloud/KerberosTestServices.java b/solr/core/src/test/org/apache/solr/cloud/KerberosTestServices.java index 1d7a4aba77a..6295dddacbd 100644 --- a/solr/core/src/test/org/apache/solr/cloud/KerberosTestServices.java +++ b/solr/core/src/test/org/apache/solr/cloud/KerberosTestServices.java @@ -52,12 +52,13 @@ public class KerberosTestServices { } public void start() throws Exception { - if (kdc != null) kdc.start(); - Configuration.setConfiguration(jaasConfiguration); - Krb5HttpClientBuilder.regenerateJaasConfiguration(); if (brokenLanguagesWithMiniKdc.contains(Locale.getDefault().getLanguage())) { Locale.setDefault(Locale.US); } + + if (kdc != null) kdc.start(); + Configuration.setConfiguration(jaasConfiguration); + Krb5HttpClientBuilder.regenerateJaasConfiguration(); } public void stop() {