[jboss-jira] [JBoss JIRA] (WFCORE-2667) CLI returns always "0" if CLI is started with "cmd /c " on Windows
Jean-Francois Denise (JIRA)
issues at jboss.org
Wed Apr 12 08:34:01 EDT 2017
[ https://issues.jboss.org/browse/WFCORE-2667?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jean-Francois Denise moved JBEAP-10314 to WFCORE-2667:
------------------------------------------------------
Project: WildFly Core (was: JBoss Enterprise Application Platform)
Key: WFCORE-2667 (was: JBEAP-10314)
Workflow: GIT Pull Request workflow (was: CDW with loose statuses v1)
Component/s: CLI
Scripts
(was: CLI)
(was: Scripts)
Affects Version/s: (was: 7.1.0.DR16)
Affects Testing: (was: Regression)
> CLI returns always "0" if CLI is started with "cmd /c " on Windows
> ------------------------------------------------------------------
>
> Key: WFCORE-2667
> URL: https://issues.jboss.org/browse/WFCORE-2667
> Project: WildFly Core
> Issue Type: Bug
> Components: CLI, Scripts
> Environment: Windows
> Reporter: Jean-Francois Denise
> Assignee: Jean-Francois Denise
> Priority: Critical
>
> *Description of problem:*
> CLI returns always "0" if CLI is started with "cmd /c " on Windows
> This issue is regression against EAP 7.0.0, but priority of this jira is not blocker, because this issue is corner case.
> *Steps to Reproduce:*
> # jboss-cli.bat --command=version_error
> # echo Exit Code is %errorlevel%
> # REM verify correct return value: 1
> # cmd /c jboss-cli.bat --command=version_error
> # echo Exit Code is %errorlevel%
> # REM return value is 0 in EAP 7.1.0.DR16. Correct return value should be 1
> *Actual results:*
> {noformat}
> C:\Users\Administrator\playground\7.1.0.DR16\jboss-eap-7.1\bin>jboss-cli.bat --command=version_error
> Unexpected command 'version_error'. Type 'help --commands' for the list of supported commands.
> C:\Users\Administrator\playground\7.1.0.DR16\jboss-eap-7.1\bin>echo Exit Code is %errorlevel%
> Exit Code is 1
> C:\Users\Administrator\playground\7.1.0.DR16\jboss-eap-7.1\bin>
> C:\Users\Administrator\playground\7.1.0.DR16\jboss-eap-7.1\bin>cmd /c jboss-cli.bat --command=version_error
> Unexpected command 'version_error'. Type 'help --commands' for the list of supported commands.
> C:\Users\Administrator\playground\7.1.0.DR16\jboss-eap-7.1\bin>echo Exit Code is %errorlevel%
> Exit Code is 0
> C:\Users\Administrator\playground\7.1.0.DR16\jboss-eap-7.1\bin>
> {noformat}
> *Expected results:*
> {noformat}
> C:\Users\Administrator\playground\7.0.0\jboss-eap-7.0\bin>jboss-cli.bat --command=version_error
> Unexpected command 'version_error'. Type 'help --commands' for the list of supported commands.
> C:\Users\Administrator\playground\7.0.0\jboss-eap-7.0\bin>echo Exit Code is %errorlevel%
> Exit Code is 1
> C:\Users\Administrator\playground\7.0.0\jboss-eap-7.0\bin>
> C:\Users\Administrator\playground\7.0.0\jboss-eap-7.0\bin>cmd /c jboss-cli.bat --command=version_error
> Unexpected command 'version_error'. Type 'help --commands' for the list of supported commands.
> C:\Users\Administrator\playground\7.0.0\jboss-eap-7.0\bin>echo Exit Code is %errorlevel%
> Exit Code is 1
> C:\Users\Administrator\playground\7.0.0\jboss-eap-7.0\bin>
> {noformat}
> *Additional info:*
> We see this issue also if jboss-cli.bat script is called from groovy or java
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jboss-jira
mailing list