cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Edge (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CASSANDRA-8369) Better error handling in CQLSH for invalid password
Date Wed, 25 Nov 2015 02:54:11 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-8369?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Michael Edge updated CASSANDRA-8369:
------------------------------------
    Component/s: Tools

> Better error handling in CQLSH for invalid password
> ---------------------------------------------------
>
>                 Key: CASSANDRA-8369
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-8369
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Tools
>            Reporter: Johnny Miller
>            Priority: Minor
>              Labels: cqlsh, tools
>
> On C* 2.0.11/Cqlsh 4.1.1 when logging with an invalid password you get back a stacktrace
rather than a more user friendly error. It might be better if this was more user friendly.
> For example - this is what you get back now:
> root@cass1:~# cqlsh -u cassandra -p johnny
> Traceback (most recent call last):
>   File "/usr/bin/cqlsh", line 2113, in <module>
>     main(*read_options(sys.argv[1:], os.environ))
>   File "/usr/bin/cqlsh", line 2093, in main
>     single_statement=options.execute)
>   File "/usr/bin/cqlsh", line 505, in __init__
>     password=password, cql_version=cqlver, transport=transport)
>   File "/usr/share/dse/cassandra/lib/cql-internal-only-1.4.1.zip/cql-1.4.1/cql/connection.py",
line 143, in connect
>   File "/usr/share/dse/cassandra/lib/cql-internal-only-1.4.1.zip/cql-1.4.1/cql/connection.py",
line 59, in __init__
>   File "/usr/share/dse/cassandra/lib/cql-internal-only-1.4.1.zip/cql-1.4.1/cql/thrifteries.py",
line 157, in establish_connection
>   File "/usr/share/dse/cassandra/lib/cql-internal-only-1.4.1.zip/cql-1.4.1/cql/cassandra/Cassandra.py",
line 465, in login
>   File "/usr/share/dse/cassandra/lib/cql-internal-only-1.4.1.zip/cql-1.4.1/cql/cassandra/Cassandra.py",
line 486, in recv_login
> cql.cassandra.ttypes.AuthenticationException: AuthenticationException(why='Username and/or
password are incorrect')



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message