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

Redirection (<<) do not work in CLI

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 7.0.0.ER5
    • 7.0.0.ER4
    • CLI
    • None

      Description of problem:
      Redirection << do not work in CLI

      Similar issue with different error messages was reported in EAP 7.0.0.DR8 - JBEAP-670 - (it was also blocker)

      Regression against 6.4.0
      Regression against 7.0.0.DR7
      Regression against 7.0.0.ER3
      Bugzilla from 6x

      Customer cases (EAP 6x):

      How reproducible:
      Always

      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:

      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@52102734 rejected from java.util.concurrent.ThreadPoolExecutor@3541cb24[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 1]
      

      Expected results:
      ":shutdown" command will be executed

              olubyans@redhat.com Alexey Loubyansky
              mkopecky@redhat.com Marek Kopecky
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: