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
This commit is contained in:
Christopher John Male 2012-04-24 10:47:19 +00:00
parent 0080caf27a
commit b91898b5df
1 changed files with 2 additions and 1 deletions

View File

@ -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,