[
https://issues.apache.org/jira/browse/CASSANDRA-4648?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sylvain Lebresne updated CASSANDRA-4648:
----------------------------------------
Attachment: 4648.txt
Attaching patch that is so that processInternal skips StorageProxy and
authorization (so it also solve CASSANDRA-4617 in particular).
I'm keen on keeping QP here because we use a mix of cf with and without compact
storage internally, and not using QP would get annoying and error prone, while
QP already deal with that. Also, collections are another thing that might be
painful without QP (I don't think we have any in the system tables yet but I'm
betting we'll have some soon enough).
> Unable to start Cassandra with simple authentication enabled
> ------------------------------------------------------------
>
> Key: CASSANDRA-4648
> URL: https://issues.apache.org/jira/browse/CASSANDRA-4648
> Project: Cassandra
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.2.0 beta 1
> Environment: Mac OS X
> Reporter: John Sanda
> Assignee: Sylvain Lebresne
> Labels: security
> Fix For: 1.2.0
>
> Attachments: 4648.txt
>
>
> I followed the steps for enabling simple authentication as described here,
> http://www.datastax.com/docs/1.1/configuration/authentication. I tried
> starting Cassandra with,
> cassandra -f -Dpasswd.properties=conf/passwd.properties
> -Daccess.properties=conf/access.properties
> Start up failed with this exception in my log:
> ERROR [main] 2012-09-11 15:03:04,642 CassandraDaemon.java (line 403)
> Exception encountered during startup
> java.lang.AssertionError:
> org.apache.cassandra.exceptions.InvalidRequestException: You have not logged
> in
> at
> org.apache.cassandra.cql3.QueryProcessor.processInternal(QueryProcessor.java:136)
> at
> org.apache.cassandra.db.SystemTable.checkHealth(SystemTable.java:298)
> at
> org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:203)
> at
> org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:386)
> at
> org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:429)
> Caused by: org.apache.cassandra.exceptions.InvalidRequestException: You have
> not logged in
> at
> org.apache.cassandra.service.ClientState.validateLogin(ClientState.java:254)
> at
> org.apache.cassandra.service.ClientState.hasColumnFamilyAccess(ClientState.java:235)
> at
> org.apache.cassandra.cql3.statements.SelectStatement.checkAccess(SelectStatement.java:105)
> at
> org.apache.cassandra.cql3.QueryProcessor.processStatement(QueryProcessor.java:106)
> at
> org.apache.cassandra.cql3.QueryProcessor.processInternal(QueryProcessor.java:124)
> ... 4 more
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira