[jboss-jira] [JBoss JIRA] (WFCORE-877) Redirection (<, <<) do not work in CLI

Marek Kopecký (JIRA) issues at jboss.org
Thu Oct 8 06:49:01 EDT 2015


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

Marek Kopecký updated WFCORE-877:
---------------------------------
    Description: 
*Description of problem:*
Redirection (<, <<) do not work in CLI

*How reproducible:*
Always

*Steps to Reproduce:*
# echo ":shutdown" > c
# ./jboss-cli.sh -c < c

*Actual results:*
You are disconnected at the moment. Type 'connect' to connect to the server or 'help' for the list of supported commands.

*Expected results:*
":shutdown" command will be executed

*Another steps to reproduce:*
# cd bin
# ./standalone.sh &
# ./jboss-cli.sh -c command=/core-service=management/security-realm=ApplicationRealm/authentication=local:remove
# ./jboss-cli.sh -c command=/core-service=management/security-realm=ManagementRealm/authentication=local:remove
# ./jboss-cli.sh -c command=:shutdown
# ./add-user.sh -u bob -p admin123$ -s
# ./standalone.sh &
# {noformat}./jboss-cli.sh -c <<EOF
bob
admin123$
batch
:shutdown
run-batch
EOF{noformat}

*Actual results:*
Unexpected command 'bob'. Type 'help --commands' for the list of supported commands.

*Expected results:*
":shutdown" command will be executed

*Additional info:*
Regression against 6.4.0
Regression against 7.0.0.DR7
Bugzilla from 6x
* https://bugzilla.redhat.com/show_bug.cgi?id=961425

Customer cases (EAP 6x):
* https://access.redhat.com/support/cases/#/case/00904577
* https://access.redhat.com/support/cases/#/case/00889193
* https://access.redhat.com/support/cases/#/case/00910827
* https://access.redhat.com/support/cases/#/case/00910848

  was:
*Description of problem:*
Redirection (<, <<) do not work in CLI

*How reproducible:*
Always

*Steps to Reproduce:*
# echo ":shutdown" > c
# ./jboss-cli.sh -c < c

*Actual results:*
You are disconnected at the moment. Type 'connect' to connect to the server or 'help' for the list of supported commands.

*Expected results:*
":shutdown" command will be executed

*Another steps to reproduce:*
# cd bin
# ./standalone.sh &
# ./jboss-cli.sh -c command=/core-service=management/security-realm=ApplicationRealm/authentication=local:remove
# ./jboss-cli.sh -c command=/core-service=management/security-realm=ManagementRealm/authentication=local:remove
# ./jboss-cli.sh -c command=:shutdown
# cd ..
# echo "bob=81ce18184f7b1095a367d5fae624ac15" >> standalone/configuration/mgmt-users.properties
# ./bin/standalone.sh &
# {noformat}./bin/jboss-cli.sh -c <<EOF
bob
admin123$
batch
:shutdown
run-batch
EOF{noformat}

*Actual results:*
Unexpected command 'bob'. Type 'help --commands' for the list of supported commands.

*Expected results:*
":shutdown" command will be executed

*Additional info:*
Regression against 6.4.0
Regression against 7.0.0.DR7
Bugzilla from 6x
* https://bugzilla.redhat.com/show_bug.cgi?id=961425

Customer cases (EAP 6x):
* https://access.redhat.com/support/cases/#/case/00904577
* https://access.redhat.com/support/cases/#/case/00889193
* https://access.redhat.com/support/cases/#/case/00910827
* https://access.redhat.com/support/cases/#/case/00910848



> Redirection (<, <<) do not work in CLI
> --------------------------------------
>
>                 Key: WFCORE-877
>                 URL: https://issues.jboss.org/browse/WFCORE-877
>             Project: WildFly Core
>          Issue Type: Enhancement
>          Components: CLI
>            Reporter: Marek Kopecký
>            Assignee: Joe Wertz
>            Priority: Blocker
>             Fix For: 2.0.0.Beta6
>
>
> *Description of problem:*
> Redirection (<, <<) do not work in CLI
> *How reproducible:*
> Always
> *Steps to Reproduce:*
> # echo ":shutdown" > c
> # ./jboss-cli.sh -c < c
> *Actual results:*
> You are disconnected at the moment. Type 'connect' to connect to the server or 'help' for the list of supported commands.
> *Expected results:*
> ":shutdown" command will be executed
> *Another steps to reproduce:*
> # cd bin
> # ./standalone.sh &
> # ./jboss-cli.sh -c command=/core-service=management/security-realm=ApplicationRealm/authentication=local:remove
> # ./jboss-cli.sh -c command=/core-service=management/security-realm=ManagementRealm/authentication=local:remove
> # ./jboss-cli.sh -c command=:shutdown
> # ./add-user.sh -u bob -p admin123$ -s
> # ./standalone.sh &
> # {noformat}./jboss-cli.sh -c <<EOF
> bob
> admin123$
> batch
> :shutdown
> run-batch
> EOF{noformat}
> *Actual results:*
> Unexpected command 'bob'. Type 'help --commands' for the list of supported commands.
> *Expected results:*
> ":shutdown" command will be executed
> *Additional info:*
> Regression against 6.4.0
> Regression against 7.0.0.DR7
> Bugzilla from 6x
> * https://bugzilla.redhat.com/show_bug.cgi?id=961425
> Customer cases (EAP 6x):
> * https://access.redhat.com/support/cases/#/case/00904577
> * https://access.redhat.com/support/cases/#/case/00889193
> * https://access.redhat.com/support/cases/#/case/00910827
> * https://access.redhat.com/support/cases/#/case/00910848



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



More information about the jboss-jira mailing list