Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught exception with Ctrl+C instead of input on password update #218

Open
izmalk opened this issue Nov 28, 2023 · 0 comments
Open

Uncaught exception with Ctrl+C instead of input on password update #218

izmalk opened this issue Nov 28, 2023 · 0 comments

Comments

@izmalk
Copy link

izmalk commented Nov 28, 2023

Description

user password-update command requests the old password.
Shows an exception when I use Ctrl+C instead of input.

Environment

  1. OS (where TypeDB server runs): macOS 13.4.1 (c) (22F770820d)
  2. TypeDB version (and platform): 2.25.7 (x86)
  3. TypeDB client: Console 2.25.7
  4. Other environment details:

Reproducible Steps

Steps to create the smallest reproducible scenario:

  1. Start TypeDB Console (I used TypeDB Core and its Console)
  2. Use command user password-update
  3. Use Ctrl + C

Expected Output

Graceful exit.

Actual Output

> user password-update
Old password:
Exception in thread "main" org.jline.reader.UserInterruptException
	at org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:707)
	at org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:498)
	at org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:471)
	at com.vaticle.typedb.console.common.Utils.readPassword(Utils.java:76)
	at com.vaticle.typedb.console.command.REPLCommand.readREPLCommand(REPLCommand.java:767)
	at com.vaticle.typedb.console.command.REPLCommand.readREPLCommand(REPLCommand.java:740)
	at com.vaticle.typedb.console.TypeDBConsole.runREPLMode(TypeDBConsole.java:183)
	at com.vaticle.typedb.console.TypeDBConsole.main(TypeDBConsole.java:128)

Additional information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants