From b91898b5df905754324d7e274c41775b70c439ee Mon Sep 17 00:00:00 2001 From: Christopher John Male Date: Tue, 24 Apr 2012 10:47:19 +0000 Subject: [PATCH] SOLR-3301: Added Locale to param uppercasing git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1329634 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/java/org/apache/solr/handler/PingRequestHandler.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/solr/core/src/java/org/apache/solr/handler/PingRequestHandler.java b/solr/core/src/java/org/apache/solr/handler/PingRequestHandler.java index c923fdb3c3e..032f0dfda04 100644 --- a/solr/core/src/java/org/apache/solr/handler/PingRequestHandler.java +++ b/solr/core/src/java/org/apache/solr/handler/PingRequestHandler.java @@ -21,6 +21,7 @@ import java.io.File; import java.io.FileWriter; import java.text.SimpleDateFormat; import java.util.Date; +import java.util.Locale; import org.apache.solr.common.SolrException; import org.apache.solr.common.params.CommonParams; @@ -60,7 +61,7 @@ public class PingRequestHandler extends RequestHandlerBase } else { try { - action = ACTIONS.valueOf(actionParam.toUpperCase()); + action = ACTIONS.valueOf(actionParam.toUpperCase(Locale.ENGLISH)); } catch (IllegalArgumentException iae){ throw new SolrException(SolrException.ErrorCode.BAD_REQUEST,