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

Todd Blose commented on CASSANDRA-970:
--------------------------------------

Agreed. Here is the change then..

I'll throw an AuthenticationException with message "Keyspace does not exist" in 
login if the keyspace cannot be found.

If any of the other thrift commands are called prior to login, 
checkLoginAuthorized will throw an InvalidRequestException with message: "You 
have not logged in to a specific keyspace"

These changes can be joined with CASSANDRA-714

> Throw NotFoundException when attempting to authenticate to a nonexistent 
> keyspace
> ---------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-970
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-970
>             Project: Cassandra
>          Issue Type: New Feature
>            Reporter: Todd Blose
>            Assignee: Todd Blose
>             Fix For: 0.7
>
>
> In login, if a keyspace does not exist, a NotFoundException should be thrown. 
> This way, the other thrift methods won't be executed against an invalid 
> keyspace.
> Any objections to adding this?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to