cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eev...@apache.org
Subject svn commit: r900645 - /incubator/cassandra/trunk/src/java/org/apache/cassandra/service/CassandraServer.java
Date Tue, 19 Jan 2010 02:11:06 GMT
Author: eevans
Date: Tue Jan 19 02:11:05 2010
New Revision: 900645

URL: http://svn.apache.org/viewvc?rev=900645&view=rev
Log:
disable login() requirement for AllowAllAuthenticator

Patch by eevans

Modified:
    incubator/cassandra/trunk/src/java/org/apache/cassandra/service/CassandraServer.java

Modified: incubator/cassandra/trunk/src/java/org/apache/cassandra/service/CassandraServer.java
URL: http://svn.apache.org/viewvc/incubator/cassandra/trunk/src/java/org/apache/cassandra/service/CassandraServer.java?rev=900645&r1=900644&r2=900645&view=diff
==============================================================================
--- incubator/cassandra/trunk/src/java/org/apache/cassandra/service/CassandraServer.java (original)
+++ incubator/cassandra/trunk/src/java/org/apache/cassandra/service/CassandraServer.java Tue
Jan 19 02:11:05 2010
@@ -704,6 +704,10 @@
 
     protected void checkLoginDone() throws InvalidRequestException
     {
+        // FIXME: This disables the "you must call login()" requirement when the configured
+        // authenticator is AllowAllAuthenticator. This is a temporary measure until CASSANDRA-714
is complete.
+        if (DatabaseDescriptor.getAuthenticator() instanceof AllowAllAuthenticator)
+            return;
         if (!loginDone.get()) throw new InvalidRequestException("Login is required before
any other API calls");
     }
 



Mime
View raw message