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 24695186DE for ; Mon, 24 Aug 2015 14:49:46 +0000 (UTC) Received: (qmail 17326 invoked by uid 500); 24 Aug 2015 14:49:46 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 17282 invoked by uid 500); 24 Aug 2015 14:49: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 17265 invoked by uid 99); 24 Aug 2015 14:49:45 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Aug 2015 14:49:45 +0000 Date: Mon, 24 Aug 2015 14:49:45 +0000 (UTC) From: "Aleksey Yeschenko (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-10135) Quoting changed for username in GRANT statement 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-10135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14709399#comment-14709399 ] Aleksey Yeschenko commented on CASSANDRA-10135: ----------------------------------------------- +1 > Quoting changed for username in GRANT statement > ----------------------------------------------- > > Key: CASSANDRA-10135 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10135 > Project: Cassandra > Issue Type: Bug > Components: API > Environment: cassandra 2.2.0 > Reporter: Bernhard K. Weisshuhn > Assignee: Sam Tunnicliffe > Priority: Minor > Fix For: 2.2.1, 3.0 beta 2 > > > We may have uncovered an undocumented api change between cassandra 2.1.x and 2.2.0. > When granting permissions to a username containing special characters, 2.1.x needed single quotes around the username and refused doubles. > 2.2.0 needs doubles and refuses singles. > Working example for 2.1.x: > {code:sql} > GRANT SELECT ON ALL KEYSPACES TO 'vault-readonly-root-79840dbb-917e-ed90-38e0-578226e6c1c6-1440017797'; > {code} > Enclosing the username in double quotes instead of singles fails with the following error message: > {quote} > cassandra@cqlsh> GRANT SELECT ON ALL KEYSPACES TO "vault-readonly-root-79840dbb-917e-ed90-38e0-578226e6c1c6-1440017797"; > SyntaxException: > {quote} > Singles fail in 2.2.0: > {quote} > cassandra@cqlsh> GRANT SELECT ON ALL KEYSPACES TO 'vault-readonly-root-e04e7a84-a7ba-d84f-f3c0-1e50e7590179-1440019308'; > SyntaxException: > {quote} > ... whereas double quotes succeed: > {code:sql} > GRANT SELECT ON ALL KEYSPACES TO "vault-readonly-root-e04e7a84-a7ba-d84f-f3c0-1e50e7590179-1440019308"; > {code} > If this is a deliberate change, I don't think it is reflected in the documentation. I am temped to consider this a bug introduced with the role additions. > Motivation for this report: https://github.com/hashicorp/vault/pull/545#issuecomment-132634630 -- This message was sent by Atlassian JIRA (v6.3.4#6332)