Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-7510

Redirection (<, <<) do not work in CLI

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 7.1.0.DR10
    • 7.1.0.DR8
    • CLI, Security
    • None
    • Regression
    • Not Required

      Description of problem:

      Steps to reproduce:

      1. cd bin
      2. ./standalone.sh &
      3. ./jboss-cli.sh -c command=/core-service=management/security-realm=ApplicationRealm/authentication=local:remove
      4. ./jboss-cli.sh -c command=/core-service=management/security-realm=ManagementRealm/authentication=local:remove
      5. ./jboss-cli.sh -c command=:shutdown
      6. ./add-user.sh -u bob -p admin123$ -s
      7. ./standalone.sh &
      8. ./jboss-cli.sh -c <<EOF
        bob
        admin123$
        batch
        :shutdown
        run-batch
        EOF
        

      Actual results:

      [mkopecky@dhcp-10-40-4-133 bin]$ ./jboss-cli.sh -c <<EOF
      > bob
      > admin123$
      > batch
      > :shutdown
      > run-batch
      > EOF
      Authenticating against security realm: ManagementRealm
      Username: bob
      Password: 
      batch
      :shutdown
      No connection to the controller.
      run-batch
      The command is not available in the current context (e.g. required subsystems or connection to the controller might be unavailable).
      
      [standalone@localhost:9990 / #] Task org.jboss.aesh.console.Console$5@13526e59 rejected from java.util.concurrent.ThreadPoolExecutor@2235eaab[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 1]
      [mkopecky@dhcp-10-40-4-133 bin]$ 
      

      Expected results:
      ":shutdown" command will be executed

            jdenise@redhat.com Jean Francois Denise
            mkopecky@redhat.com Marek Kopecky
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: