Brett Meyer created SRAMP-453:
---------------------------------
Summary: Exception if using Backspace on CLI password prompt
Key: SRAMP-453
URL:
https://issues.jboss.org/browse/SRAMP-453
Project: S-RAMP
Issue Type: Bug
Security Level: Public (Everyone can see)
Reporter: Brett Meyer
Assignee: Brett Meyer
If you mistype a password in the CLI prompt and hit Backspace 1 too many times, boom.
S-RAMP Password: java.lang.ArrayIndexOutOfBoundsException
at java.lang.System.arraycopy(Native Method)
at java.lang.AbstractStringBuilder.insert(AbstractStringBuilder.java:1152)
at java.lang.StringBuilder.insert(StringBuilder.java:336)
at org.jboss.aesh.console.Buffer.write(Buffer.java:319)
at org.jboss.aesh.console.Console.writeChar(Console.java:837)
at org.jboss.aesh.console.Console.writeChars(Console.java:832)
at org.jboss.aesh.console.Console.parseOperation(Console.java:515)
at org.jboss.aesh.console.Console.read(Console.java:452)
at
org.overlord.sramp.shell.InteractiveShellCommandReader.promptForPassword(InteractiveShellCommandReader.java:161)
at org.overlord.sramp.shell.ShellContextImpl.promptForPassword(ShellContextImpl.java:172)
at
org.overlord.sramp.shell.commands.core.ConnectCommand.promptForPassword(ConnectCommand.java:107)
at org.overlord.sramp.shell.commands.core.ConnectCommand.execute(ConnectCommand.java:67)
at org.overlord.sramp.shell.SrampShell.run(SrampShell.java:102)
at org.overlord.sramp.shell.SrampShell.main(SrampShell.java:67)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:297)
at java.lang.Thread.run(Thread.java:744)
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)