cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Lerer (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-13646) Bind parameters of collection types are not properly validated
Date Fri, 07 Jul 2017 11:52:01 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-13646?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16077987#comment-16077987
] 

Benjamin Lerer commented on CASSANDRA-13646:
--------------------------------------------

Thanks for the review :-).

Committed into 2.2 at b77e11cfd51ddb0f3ac07530399abe999df0573e and merged into 3.0, 3.11 and
trunk

> Bind parameters of collection types are not properly validated  
> ----------------------------------------------------------------
>
>                 Key: CASSANDRA-13646
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-13646
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Benjamin Lerer
>            Assignee: Benjamin Lerer
>
> It looks like C* is not validating properly the bind parameters for collection types.
If an element of the collection is invalid the value will not be rejected and might cause
an Exception later on.
> The problem can be reproduced with the following test:
> {code}
>     @Test
>     public void testInvalidQueries() throws Throwable
>     {
>         createTable("CREATE TABLE %s (k int PRIMARY KEY, s frozen<set<tuple<int,
text, double>>>)");
>         execute("INSERT INTO %s (k, s) VALUES (0, ?)", set(tuple(1,"1",1.0,1), tuple(2,"2",2.0,2)));
>     }
> {code}
> The invalid Tuple will cause an "IndexOutOfBoundsException: Index: 3, Size: 3"



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org


Mime
View raw message