[ https://issues.apache.org/jira/browse/HBASE-15889?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15305686#comment-15305686 ]
Hudson commented on HBASE-15889: -------------------------------- FAILURE: Integrated in HBase-Trunk_matrix #956 (See [https://builds.apache.org/job/HBase-Trunk_matrix/956/]) HBASE-15889. String case conversions are locale-sensitive, used without (busbey: rev 3b6e6e6c25c4f1dd35bc9da98cc8d8ed6b49db92) * hbase-client/src/main/java/org/apache/hadoop/hbase/util/PoolMap.java * hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/RpcExecutor.java * hbase-server/src/main/java/org/apache/hadoop/hbase/util/CompressionTest.java * hbase-server/src/main/java/org/apache/hadoop/hbase/util/HBaseFsck.java * hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/HThreadedSelectorServerArgs.java * hbase-client/src/main/java/org/apache/hadoop/hbase/ipc/AsyncRpcChannelImpl.java * hbase-client/src/main/java/org/apache/hadoop/hbase/filter/SubstringComparator.java * hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestRegionServerHostname.java * hbase-server/src/main/java/org/apache/hadoop/hbase/util/RegionMover.java * hbase-server/src/test/java/org/apache/hadoop/hbase/mapreduce/TestLoadIncrementalHFiles.java * hbase-server/src/test/java/org/apache/hadoop/hbase/PerformanceEvaluation.java * hbase-common/src/main/java/org/apache/hadoop/hbase/ServerName.java * hbase-it/src/test/java/org/apache/hadoop/hbase/HBaseClusterManager.java * hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/Import.java * hbase-hadoop2-compat/src/test/java/org/apache/hadoop/hbase/test/MetricsAssertHelperImpl.java * hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/TableInputFormat.java * hbase-server/src/test/java/org/apache/hadoop/hbase/TimedOutTestsListener.java * hbase-client/src/main/java/org/apache/hadoop/hbase/zookeeper/MetaTableLocator.java * hbase-client/src/main/java/org/apache/hadoop/hbase/ipc/RpcClientImpl.java * hbase-server/src/main/java/org/apache/hadoop/hbase/util/DirectMemoryUtils.java * hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/DataBlockEncodingTool.java * hbase-server/src/test/java/org/apache/hadoop/hbase/TestIPv6NIOServerSocketChannel.java * hbase-common/src/main/java/org/apache/hadoop/hbase/io/crypto/KeyStoreKeyProvider.java * hbase-hadoop2-compat/src/main/java/org/apache/hadoop/hbase/ipc/MetricsHBaseServerSourceFactoryImpl.java * hbase-server/src/main/java/org/apache/hadoop/hbase/util/FSUtils.java * hbase-server/src/test/java/org/apache/hadoop/hbase/mapreduce/MultiTableInputFormatTestBase.java * hbase-server/src/main/java/org/apache/hadoop/hbase/util/ServerCommandLine.java * hbase-server/src/test/java/org/apache/hadoop/hbase/util/LoadTestTool.java * hbase-server/src/test/java/org/apache/hadoop/hbase/mapreduce/TestTableInputFormatScanBase.java * hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/BaseRowProcessor.java * hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/ThriftUtilities.java * hbase-it/src/test/java/org/apache/hadoop/hbase/RESTApiClusterManager.java * hbase-it/src/test/java/org/apache/hadoop/hbase/StripeCompactionsPerformanceEvaluation.java * hbase-server/src/main/java/org/apache/hadoop/hbase/security/HBaseSaslRpcServer.java * hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/filter/GzipFilter.java * hbase-client/src/main/java/org/apache/hadoop/hbase/HColumnDescriptor.java * hbase-annotations/src/main/java/org/apache/hadoop/hbase/classification/tools/StabilityOptions.java * hbase-client/src/main/java/org/apache/hadoop/hbase/protobuf/ProtobufUtil.java > String case conversions are locale-sensitive, used without locale > ----------------------------------------------------------------- > > Key: HBASE-15889 > URL: https://issues.apache.org/jira/browse/HBASE-15889 > Project: HBase > Issue Type: Bug > Affects Versions: 1.2.0 > Reporter: Sean Mackrory > Assignee: Sean Mackrory > Priority: Minor > Attachments: HBASE-15889-branch-1.v2.patch, HBASE-15889-v1.patch, > HBASE-15891-v2.patch > > > Static code analysis is flagging cases of String.toLowerCase and > String.toUpperCase being used without Locale. From the API reference: > {quote} > Note: This method is locale sensitive, and may produce unexpected results if > used for strings that are intended to be interpreted locale independently. > Examples are programming language identifiers, protocol keys, and HTML tags. > For instance, "TITLE".toLowerCase() in a Turkish locale returns "t\u0131tle", > where '\u0131' is the LATIN SMALL LETTER DOTLESS I character. To obtain > correct results for locale insensitive strings, use toLowerCase(Locale.ROOT). > {quote} > Many uses of these functions do appear to be looking up classes, etc. and not > dealing with stored data, so I'd think there aren't significant compatibility > problems here and specifying the locale is indeed the safer way to go. -- This message was sent by Atlassian JIRA (v6.3.4#6332)