Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-4017

CLI --commands attribute don't work with comma separated

    XMLWordPrintable

Details

    • Hide
      • Start JBoss AS 7.1.Final and doesn't matter if it's standalone or domain mode
      • Try to execute 2 or more commands using the jboss-cli.sh script (and maybe the same problem happen to win script as well because this calls a java class)
        example:
        ./jboss-cli.sh -c --commands=/host=master/server-config=example:add(auto-start=true,group=main-server-group,socket-binding-port-offset=300,socket-binding-group=standard-sockets),/host=master/server-config=example:start

      I saw the code and at some point it runs [commands = arg.split(",+") in the ] so the first command has comma separated attributes and it doesn't work as expected.

      Show
      Start JBoss AS 7.1.Final and doesn't matter if it's standalone or domain mode Try to execute 2 or more commands using the jboss-cli.sh script (and maybe the same problem happen to win script as well because this calls a java class) example: ./jboss-cli.sh -c --commands=/host=master/server-config=example:add(auto-start=true,group=main-server-group,socket-binding-port-offset=300,socket-binding-group=standard-sockets),/host=master/server-config=example:start I saw the code and at some point it runs [commands = arg.split(",+") in the ] so the first command has comma separated attributes and it doesn't work as expected.
    • Hide

      Not Apply

      Show
      Not Apply

    Description

      When I try to execute multiple commands in CLI using the script I got an error. The parameter --commands of the jboss-cli.sh seems to do a string split by comma, but are commands that use comma as character to separate attributes.

      Attachments

        Activity

          People

            olubyans@redhat.com Alexey Loubyansky
            stauil1@redhat.com Samuel de Lima Tauil (Inactive)
            Votes:
            5 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: