Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 49F3E17472 for ; Mon, 31 Aug 2015 14:21:46 +0000 (UTC) Received: (qmail 31571 invoked by uid 500); 31 Aug 2015 14:21:46 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 31534 invoked by uid 500); 31 Aug 2015 14:21:46 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 31522 invoked by uid 99); 31 Aug 2015 14:21:46 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Aug 2015 14:21:46 +0000 Date: Mon, 31 Aug 2015 14:21:46 +0000 (UTC) From: "Jonathan Ellis (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-10209) Missing role manager in cassandra.yaml causes unexpected behaviour MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-10209?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14723458#comment-14723458 ] Jonathan Ellis commented on CASSANDRA-10209: -------------------------------------------- +1 nit: I'd reverse the order of the comparison to avoid a double negative (!= .. else) > Missing role manager in cassandra.yaml causes unexpected behaviour > ------------------------------------------------------------------ > > Key: CASSANDRA-10209 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10209 > Project: Cassandra > Issue Type: Bug > Reporter: Sam Tunnicliffe > Assignee: Sam Tunnicliffe > Priority: Minor > Fix For: 2.2.x, 3.0 beta 2 > > > On upgrading to 2.2+, if the new {{role_manager}} option is not added to {{cassandra.yaml}}, an instance of the default {{CassandraRoleManager}} is created during initialization of {{DatabaseDescriptor}}. This is a problem as the set of role options supported by {{CRM}} depends on the configured {{IAuthenticator}}, which at that point in time is always {{AllowAllAuthenticator}}. > This StackOverflow post describes the problem; the configured authenticator is {{PasswordAuthenticator}}, the role manager should allow roles to be created using the {{PASSWORD}} option, but it does not. > http://stackoverflow.com/questions/31820914/in-cassandra-2-2-unable-to-create-role-containing-password > The simple workaround is to ensure that yaml contains the role manager option > {code} > role_manager: CassandraRoleManager > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)