[jboss-jira] [JBoss JIRA] (WFCORE-4460) jboss-cli.sh doesn't return json when the output command is 'failed'

Ingo Weiss (Jira) issues at jboss.org
Tue May 7 05:59:00 EDT 2019


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

Ingo Weiss updated WFCORE-4460:
-------------------------------
    Description: 
The CLI returns a JSON output just when the CLI command got 'success'. In case of the output 'failed' the output is only DMR syntax.

The following command was used in the tests: 
{noformat}
$JBOSS_HOME/bin/boss-cli.sh --connect --controller=localhost:9990 --command="/host=*/server=*/deployment=*/:read-resource(recursive=false,include-runtime=true)" --output-json
{noformat}

  was:
The CLI returns a JSON output just when the CLI command got 'success'. In case of the output 'failed' the output is only DMR syntax.

The following command was used in the tests: 

JBOSS_HOME/bin/boss-cli.sh --connect --controller=localhost:9990 --command="/host=*/server=*/deployment=*/:read-resource(recursive=false,include-runtime=true)" --output-json



> jboss-cli.sh doesn't return json when the output command is 'failed'
> --------------------------------------------------------------------
>
>                 Key: WFCORE-4460
>                 URL: https://issues.jboss.org/browse/WFCORE-4460
>             Project: WildFly Core
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 9.0.0.Beta4
>         Environment: JBoss EAP 7.2.0 running in domain mode.
>            Reporter: Ingo Weiss
>            Assignee: Ingo Weiss
>            Priority: Major
>
> The CLI returns a JSON output just when the CLI command got 'success'. In case of the output 'failed' the output is only DMR syntax.
> The following command was used in the tests: 
> {noformat}
> $JBOSS_HOME/bin/boss-cli.sh --connect --controller=localhost:9990 --command="/host=*/server=*/deployment=*/:read-resource(recursive=false,include-runtime=true)" --output-json
> {noformat}



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list