Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id EB9BA200B70 for ; Sat, 27 Aug 2016 20:35:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id EA1F1160AB0; Sat, 27 Aug 2016 18:35:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 3D721160A93 for ; Sat, 27 Aug 2016 20:35:22 +0200 (CEST) Received: (qmail 10662 invoked by uid 500); 27 Aug 2016 18:35:21 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 10650 invoked by uid 99); 27 Aug 2016 18:35:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 27 Aug 2016 18:35:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 1B9092C0151 for ; Sat, 27 Aug 2016 18:35:21 +0000 (UTC) Date: Sat, 27 Aug 2016 18:35:21 +0000 (UTC) From: "Dave Brosius (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CASSANDRA-12544) Portability Flaw: Locale Dependent Comparison MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 27 Aug 2016 18:35:23 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-12544?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dave Brosius resolved CASSANDRA-12544. -------------------------------------- Resolution: Fixed Fix Version/s: 3.10 commit af4ebfffcfad203563c8eeadf68b2c3b0ecf2f1c table meta data is always english, so Locale.ENGLISH is fine > Portability Flaw: Locale Dependent Comparison > --------------------------------------------- > > Key: CASSANDRA-12544 > URL: https://issues.apache.org/jira/browse/CASSANDRA-12544 > Project: Cassandra > Issue Type: Sub-task > Reporter: Eduardo Aguinaga > Assignee: Dave Brosius > Fix For: 3.10 > > > Overview: > In May through June of 2016 a static analysis was performed on version 3.0.5 of the Cassandra source code. The analysis included an automated analysis using HP Fortify v4.21 SCA and a manual analysis utilizing SciTools Understand v4. The results of that analysis includes the issue below. > Issue: > In the file LegacySchemaMigrator.java on line 286 there is a portability problem with the call to toLowerCase() because it has different locales which may lead to unexpected output. This may also circumvent custom validation routines. > {code:java} > LegacySchemaMigrator.java, lines 286-289: > 286 boolean isSuper = "super".equals(tableRow.getString("type").toLowerCase()); > 287 boolean isDense = tableRow.has("is_dense") > 288 ? tableRow.getBoolean("is_dense") > 289 : calculateIsDense(rawComparator, columnRows); > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)