[jboss-jira] [JBoss JIRA] (WFCORE-1277) Embed-server from CLI launch shows twice prompt string

Chao Wang (JIRA) issues at jboss.org
Thu Jan 14 01:08:00 EST 2016


    [ https://issues.jboss.org/browse/WFCORE-1277?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13148469#comment-13148469 ] 

Chao Wang commented on WFCORE-1277:
-----------------------------------

I have rebased the PR and added one more line "consoleBuffer.setPrompted(false);" inside Console.java. After that, I can no longer see the double prompt issue, and wildfly-core and wilfy tests are both passed.

About the failed CtrlCTestCase, it tries to check prompt Username and Password on CLI connection. Thus, I have following steps to see the failure with your two commits:
1. comment out line  "<local default-user="$local" skip-group-loading="true"/>" in standalone.xml
2. use add-user.sh to create a new Management User with password.
3. run standalone.sh to start server, and run jboss-cli.sh -c, it will ask user to input username and password as:

{noformat}
Authenticating against security realm: ManagementRealm
Username
{noformat}:
including your two commits, it misses the "Username:" prompt as:
{noformat}
Authenticating against security realm: ManagementRealm
{noformat}

That's why the CtrlCTestCase fails at line "boolean promptFound = cli.executeInteractive("Username");" I think it's due to the remove of this [block|https://github.com/aeshell/aesh/commit/91e4696338c80f2e1f3e7a77a7d88c0deb7907a0#diff-d91c0c938b6c364f7db2b61677896465L418] which is supposed to display prompt when it sets new prompt "Username" (in this case)

> Embed-server from CLI launch shows twice prompt string
> ------------------------------------------------------
>
>                 Key: WFCORE-1277
>                 URL: https://issues.jboss.org/browse/WFCORE-1277
>             Project: WildFly Core
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 2.0.5.Final
>            Reporter: Chao Wang
>            Assignee: Ståle Pedersen
>            Priority: Minor
>
> {noformat}
> When I launch an embed-server from CLI, it displays twice [standalone at embedded /] [standalone at embedded /] for the first time.
> [wangc at dhcp-128-40 wildfly-10.0.0.Final-SNAPSHOT]$ sh bin/jboss-cli.sh 
> You are disconnected at the moment. Type 'connect' to connect to the server or 'help' for the list of supported commands.
> [disconnected /] embed-server 
> [standalone at embedded /] [standalone at embedded /] ls  
> core-service                               launch-type=EMBEDDED                       product-version=undefined                  
> deployment                                 management-major-version=4                 profile-name=undefined                     
> deployment-overlay                         management-micro-version=0                 release-codename=Kenny                     
> extension                                  management-minor-version=0                 release-version=2.0.5.Final                
> interface                                  name=dhcp-128-40                           running-mode=ADMIN_ONLY                    
> path                                       namespaces=[]                              schema-locations=[]                        
> socket-binding-group                       organization=undefined                     server-state=running                       
> subsystem                                  process-type=Server                        suspend-state=RUNNING                      
> system-property                            product-name=undefined                     uuid=8c4ede2f-8e14-48bf-9eaf-73947e23edcf  
> [standalone at embedded /] quit
> {noformat}
> This does not happen in 2.0.4.Final.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)



More information about the jboss-jira mailing list