[
https://issues.apache.org/jira/browse/CASSANDRA-1378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12897580#action_12897580
]
Jonathan Ellis commented on CASSANDRA-1378:
-------------------------------------------
I vote for disallowing everything but \w characters -- [a-zA-Z0-9_]
> add then drop Keyspace without putting anything in it causes exception
> ----------------------------------------------------------------------
>
> Key: CASSANDRA-1378
> URL: https://issues.apache.org/jira/browse/CASSANDRA-1378
> Project: Cassandra
> Issue Type: Bug
> Affects Versions: 0.7 beta 1
> Environment: Single node. Both Linux and Windows.
> Reporter: Jeremiah Jordan
> Assignee: Gary Dusbabek
> Priority: Minor
>
> The following from python causes an exception on
> apache-cassandra-2010-08-10_13-08-19-bin.tar.gz and a bunch of earlier builds
> in the 0.7 line:
> socket = TSocket.TSocket(host, 9160)
> transport = TTransport.TFramedTransport(socket)
> protocol = TBinaryProtocol.TBinaryProtocolAccelerated(transport)
> client = Cassandra.Client(protocol)
> transport.open()
> try:
> client.describe_keyspace(dbName)
> except NotFoundException, e:
> keyspaceDef = KsDef(name=dbName,
>
> strategy_class='org.apache.cassandra.locator.RackUnawareStrategy',
> replication_factor=replicationFactor,
> cf_defs=[])
> client.set_keyspace('system')
> client.system_add_keyspace(keyspaceDef)
> try:
> client.describe_keyspace(dbName)
> client.set_keyspace('system')
> client.system_drop_keyspace(dbName)
> except NotFoundException, e:
> pass
> The system_drop_keyspace throws:
> InvalidRequestException(why='java.util.concurrent.ExecutionException:
> java.lang.NullPointerException')
> If I put a system_add_column_family in the middle it doesn't crash.
> I think this broke sometime after apache-cassandra-2010-07-06_13-27-21
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.