Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 5339E200497 for ; Wed, 23 Aug 2017 17:24:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 51CB6168F8C; Wed, 23 Aug 2017 15:24:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 9506F168F8B for ; Wed, 23 Aug 2017 17:24:04 +0200 (CEST) Received: (qmail 31900 invoked by uid 500); 23 Aug 2017 15:24:03 -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 31889 invoked by uid 99); 23 Aug 2017 15:24:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Aug 2017 15:24:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 142721A1F91 for ; Wed, 23 Aug 2017 15:24:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 2_o_hdBIVbrW for ; Wed, 23 Aug 2017 15:24:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 2FB0A5F4A9 for ; Wed, 23 Aug 2017 15:24:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 8480FE00A3 for ; Wed, 23 Aug 2017 15:24:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 2E1412537B for ; Wed, 23 Aug 2017 15:24:00 +0000 (UTC) Date: Wed, 23 Aug 2017 15:24:00 +0000 (UTC) From: =?utf-8?Q?Andr=C3=A9s_de_la_Pe=C3=B1a_=28JIRA=29?= To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-13640) CQLSH error when using 'login' to switch users MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 23 Aug 2017 15:24:05 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-13640?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= =3D16138494#comment-16138494 ]=20 Andr=C3=A9s de la Pe=C3=B1a commented on CASSANDRA-13640: ----------------------------------------------- Right. There are the patches for 3.0, 3.11, trunk and dtest: ||[3.0|https://github.com/apache/cassandra/compare/cassandra-3.0...adelapen= a:13640-3.0]||[3.11|https://github.com/apache/cassandra/compare/cassandra-3= .11...adelapena:13640-3.11]||[trunk|https://github.com/apache/cassandra/com= pare/trunk...adelapena:13640-trunk]||[dtest|https://github.com/apache/cassa= ndra-dtest/compare/master...adelapena:13640]|| Thanks for the review. > CQLSH error when using 'login' to switch users > ---------------------------------------------- > > Key: CASSANDRA-13640 > URL: https://issues.apache.org/jira/browse/CASSANDRA-1364= 0 > Project: Cassandra > Issue Type: Bug > Components: CQL > Reporter: Andr=C3=A9s de la Pe=C3=B1a > Assignee: Andr=C3=A9s de la Pe=C3=B1a > Priority: Minor > Fix For: 3.0.x > > > Using {{PasswordAuthenticator}} and {{CassandraAuthorizer}}: > {code} > bin/cqlsh -u cassandra -p cassandra > Connected to Test Cluster at 127.0.0.1:9042. > [cqlsh 5.0.1 | Cassandra 3.0.14-SNAPSHOT | CQL spec 3.4.0 | Native protoc= ol v4] > Use HELP for help. > cassandra@cqlsh> create role super with superuser =3D true and password = =3D 'p' and login =3D true; > cassandra@cqlsh> login super; > Password: > super@cqlsh> list roles; > 'Row' object has no attribute 'values' > {code} > When we initialize the Shell, we configure certain settings on the sessio= n object such as > {code} > self.session.default_timeout =3D request_timeout > self.session.row_factory =3D ordered_dict_factory > self.session.default_consistency_level =3D cassandra.ConsistencyLevel.ONE > {code} > However, once we perform a LOGIN cmd, which calls do_login(..), we create= a new cluster/session object but actually never set those settings on the = new session. > It isn't failing on 3.x.=20 > As a workaround, it is possible to logout and log back in and things work= correctly. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org For additional commands, e-mail: commits-help@cassandra.apache.org