[
https://issues.apache.org/jira/browse/CASSANDRA-7707?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14089688#comment-14089688
]
Tyler Hobbs commented on CASSANDRA-7707:
----------------------------------------
+1 with two minor nits:
* Change {{"In call to function %s, value 0x%s is not a valid binary
representation for a %s"}} to {{"In call to function %s, value 0x%s is not a
valid binary representation for type %s"}}. (The first version is a little
strange for some types.)
* In {{"...is not a valid value for it's declared return type..."}}, it should
be "its"
> blobAs() function results not validated
> ---------------------------------------
>
> Key: CASSANDRA-7707
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7707
> Project: Cassandra
> Issue Type: Bug
> Components: Core
> Reporter: Tyler Hobbs
> Assignee: Sylvain Lebresne
> Priority: Critical
> Fix For: 2.0.10, 2.1.1
>
> Attachments: 7707.txt
>
>
> The results of the {{blobAs*()}} functions are not validated.
> Here are some examples:
> Non-type1 UUID inserted into timeuuid column:
> {noformat}
> create table foo (k int primary key, v timeuuid);
> insert into foo (0, blobAsTimeuuid(0x00000000000000000000000000000000));
> {noformat}
> Blob with length > 4 inserted into an int column:
> {noformat}
> create table bar (k int primary key, v int);
> insert into bar (k, v) VALUES (0, blobAsInt(0x0000000000));
> {noformat}
> Non-ascii characters inserted into an ascii column:
> {noformat}
> create table baz (k int primary key, v ascii);
> insert into baz (k, v) VALUES (0, blobAsAscii(0xFFFFFFFF));
> {noformat}
> Some of these (like the int column) could cause issues that look like
> corruption.
--
This message was sent by Atlassian JIRA
(v6.2#6252)