cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Johnny Miller (JIRA)" <>
Subject [jira] [Created] (CASSANDRA-8369) Better error handling in CQLSH for invalid password
Date Mon, 24 Nov 2014 15:43:13 GMT
Johnny Miller created CASSANDRA-8369:

             Summary: Better error handling in CQLSH for invalid password
                 Key: CASSANDRA-8369
             Project: Cassandra
          Issue Type: Improvement
            Reporter: Johnny Miller
            Priority: Minor

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
  File "/usr/bin/cqlsh", line 505, in __init__
    password=password, cql_version=cqlver, transport=transport)
  File "/usr/share/dse/cassandra/lib/",
line 143, in connect
  File "/usr/share/dse/cassandra/lib/",
line 59, in __init__
  File "/usr/share/dse/cassandra/lib/",
line 157, in establish_connection
  File "/usr/share/dse/cassandra/lib/",
line 465, in login
  File "/usr/share/dse/cassandra/lib/",
line 486, in recv_login
cql.cassandra.ttypes.AuthenticationException: AuthenticationException(why='Username and/or
password are incorrect')

This message was sent by Atlassian JIRA

View raw message