Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C4BCA98C7 for ; Tue, 27 Sep 2011 15:33:34 +0000 (UTC) Received: (qmail 59485 invoked by uid 500); 27 Sep 2011 15:33:33 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 59413 invoked by uid 500); 27 Sep 2011 15:33:33 -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 59398 invoked by uid 99); 27 Sep 2011 15:33:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Sep 2011 15:33:33 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Sep 2011 15:33:32 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id C629D28C815 for ; Tue, 27 Sep 2011 15:33:11 +0000 (UTC) Date: Tue, 27 Sep 2011 15:33:11 +0000 (UTC) From: "Pavel Yaskevich (Commented) (JIRA)" To: commits@cassandra.apache.org Message-ID: <151120630.3417.1317137591813.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <9626645.44533.1316480828881.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CASSANDRA-3231) CQL does not throw an error when invalid hex is supplied MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-3231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13115571#comment-13115571 ] Pavel Yaskevich commented on CASSANDRA-3231: -------------------------------------------- +1 just please add the test from my patch so we don't face such regressions in the future. > CQL does not throw an error when invalid hex is supplied > -------------------------------------------------------- > > Key: CASSANDRA-3231 > URL: https://issues.apache.org/jira/browse/CASSANDRA-3231 > Project: Cassandra > Issue Type: Bug > Components: Core > Affects Versions: 0.8.5 > Reporter: Brandon Williams > Assignee: Pavel Yaskevich > Priority: Minor > Fix For: 0.8.7 > > Attachments: 3231-v2.txt, CASSANDRA-3231.patch > > > As reported on irc, if you try to create an index on a CF with a default comparator of BytesType, but you supply invalid hex, weird things happen. Namely if you try to create one on 'category' you instead get one on '\xca\xfe\xff\xff', which is 4 bytes that appears to coincide with attempting to interpret 'ca', 'te', 'go', 'ry' as hex. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira