Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: 1.3 GA (Gosling)
-
Fix Version/s: 1.3.5 (Gosling SR5), 1.4.2 (Hopper SR2), 1.5 M1 (Ingalls)
-
Component/s: SessionFactory
-
Labels:
-
Last commented by a User:true
Description
CassandraCqlClusterFactoryBean.afterPropertiesSet() only utilizes the username property when the authProvider property is also set. Looking at the Javadoc for the methods called withAuthProvider() and withCredentials() on Cluster.Builder indicates that you should only ever call one or the other, not both. I suspect that the intended behavior should be something like:
if (authProvider != null) { builder.withAuthProvider(authProvider); } else if (username != null) { builder.withCredentials(username, password); }
but unfortunately, there are no unit tests for this class.
Attachments
Issue Links
- is superseded by
-
DATACASS-263 AuthProvider required when using with username/password
-
- Closed
-