[jboss-jira] [JBoss JIRA] (WFCORE-1471) CLI class is mixing commands and operations

Brian Stansberry (JIRA) issues at jboss.org
Tue May 10 16:07:00 EDT 2016


     [ https://issues.jboss.org/browse/WFCORE-1471?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Stansberry updated WFCORE-1471:
-------------------------------------
    Fix Version/s: 2.2.0.CR1


> CLI class is mixing commands and operations
> -------------------------------------------
>
>                 Key: WFCORE-1471
>                 URL: https://issues.jboss.org/browse/WFCORE-1471
>             Project: WildFly Core
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 3.0.0.Alpha1
>            Reporter: Jean-Francois Denise
>            Assignee: Jean-Francois Denise
>             Fix For: 2.2.0.CR1, 3.0.0.Alpha1
>
>
> CLI.cmd method logic is not in sync with the CLI syntax. 
> A fallback is implemented in order to route requests to cx.handle only if ctx.buildRequest(cliCommand) is failing. 
> For example this doesn't cope with reload vs :reload. In this case, buildRequest will succeed both for reload and :reload. CLI.cmd("reload") will end to be treated as CLI.cmd(":reload");
> Furthermore batch and workflow are not supported by CLI.
> I am suggesting to implement the following logic:
> 1) If batch is enabled or a workflow is enabled, route the command to handle
> 2) Parse the request.
> 3) If this is an operation, route to execute
> 4) Otherwise route to handle



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


More information about the jboss-jira mailing list