cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Johnny Miller (JIRA)" <j...@apache.org>
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
                 URL: https://issues.apache.org/jira/browse/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
    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