Description of problem:
CLI prints stacktrace for java.lang.InterruptedException instead of correct ending with proper error message (or without any message).
- This is regression of behaviour against EAP 6.4.0
How reproducible:
Always
Steps to Reproduce:
- ./standalone.sh
- ./jboss-cli.sh -c
- /core-service=management/security-realm=ManagementRealm/authentication=local:remove
- reload
- <Ctrl+C>
Actual results:
[mkopecky@dhcp-10-40-4-180 bin]$ ./jboss-cli.sh -c [standalone@localhost:9990 /] /core-service=management/security-realm=ManagementRealm/authentication=local:remove { "outcome" => "success", "response-headers" => { "operation-requires-reload" => true, "process-state" => "reload-required" } } [standalone@localhost:9990 /] reload Authenticating against security realm: ManagementRealm Username: java.lang.InterruptedException at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireInterruptibly(AbstractQueuedSynchronizer.java:1220) at java.util.concurrent.locks.ReentrantLock.lockInterruptibly(ReentrantLock.java:335) at java.util.concurrent.ArrayBlockingQueue.take(ArrayBlockingQueue.java:400) at org.jboss.aesh.console.Console.getInput(Console.java:501) at org.jboss.aesh.console.Console.getInputLine(Console.java:545) at org.jboss.as.cli.impl.Console$Factory$1.read(Console.java:232) at org.jboss.as.cli.impl.Console$Factory$1.readLine(Console.java:203) at org.jboss.as.cli.impl.CommandContextImpl.readLine(CommandContextImpl.java:1009) at org.jboss.as.cli.impl.CommandContextImpl.access$1200(CommandContextImpl.java:200) at org.jboss.as.cli.impl.CommandContextImpl$AuthenticationCallbackHandler.dohandle(CommandContextImpl.java:1845) at org.jboss.as.cli.impl.CommandContextImpl$AuthenticationCallbackHandler.access$900(CommandContextImpl.java:1749) at org.jboss.as.cli.impl.CommandContextImpl$AuthenticationCallbackHandler$1.run(CommandContextImpl.java:1795) at org.jboss.as.protocol.GeneralTimeoutHandler.suspendAndExecute(GeneralTimeoutHandler.java:45) at org.jboss.as.cli.impl.CommandContextImpl$AuthenticationCallbackHandler.handle(CommandContextImpl.java:1777) at org.wildfly.security.auth.client.SetCallbackHandlerAuthenticationConfiguration.handleCallbacks(SetCallbackHandlerAuthenticationConfiguration.java:43) at org.wildfly.security.auth.client.AuthenticationConfiguration.handleCallbacks(AuthenticationConfiguration.java:217) at org.wildfly.security.auth.client.AuthenticationConfiguration.handleCallbacks(AuthenticationConfiguration.java:217) at org.wildfly.security.auth.client.AuthenticationConfiguration.lambda$new$0(AuthenticationConfiguration.java:180) at org.wildfly.security.sasl.util.AbstractSaslParticipant.tryHandleCallbacks(AbstractSaslParticipant.java:98) at org.wildfly.security.sasl.digest.AbstractDigestMechanism.getPredigestedSaltedPassword(AbstractDigestMechanism.java:472) at org.wildfly.security.sasl.digest.DigestSaslClient.createResponse(DigestSaslClient.java:227) at org.wildfly.security.sasl.digest.DigestSaslClient.evaluateMessage(DigestSaslClient.java:362) at org.wildfly.security.sasl.util.AbstractSaslParticipant.evaluateMessage(AbstractSaslParticipant.java:177) at org.wildfly.security.sasl.digest.DigestSaslClient.evaluateChallenge(DigestSaslClient.java:347) at org.wildfly.security.manager.WildFlySecurityManager$5.run(WildFlySecurityManager.java:1466) at java.security.AccessController.doPrivileged(Native Method) at org.wildfly.security.manager.WildFlySecurityManager.doPrivilegedWithParameter(WildFlySecurityManager.java:1565) at org.wildfly.security.sasl.util.PrivilegedSaslClient.evaluateChallenge(PrivilegedSaslClient.java:57) at org.jboss.remoting3.remote.ClientConnectionOpenListener$Authentication.lambda$handleEvent$0(ClientConnectionOpenListener.java:598) at org.jboss.remoting3.EndpointImpl$TrackingExecutor.lambda$execute$0(EndpointImpl.java:734) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) [mkopecky@dhcp-10-40-4-180 bin]$
Expected results (copied from EAP 6.4.0):
[domain@localhost:9999 /] /core-service=management/security-realm=ManagementRealm/authentication=local:remove { "outcome" => "success", "response-headers" => { "operation-requires-reload" => true, "process-state" => "reload-required" } } [domain@localhost:9999 /] reload Missing required argument --host [domain@localhost:9999 /] [mkopecky@dhcp-10-40-4-180 bin]$ ./jboss-cli.sh -c [standalone@localhost:9999 /] reload Authenticating against security realm: ManagementRealm Username: [mkopecky@dhcp-10-40-4-180 bin]$
- duplicates
-
JBEAP-7015 JBoss CLI authentication ctrl+c results in errors
- Closed