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

CLI in gui mode should wrap values for write-attribute into quotation marks

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Minor
    • None
    • None
    • CLI
    • None

    Description

      CLI running in gui mode can be used to generate some CLI commands. However commands for write-attribute operation doesn't wrap the value into quotation marks and in some cases (e.g. log handler formatter) cannot be used.

      This issue is valid also for CLI tab in JConsole from ${JBOSS_HOME}/bin/jconsole.[sh|bat]

      reproduce
      - start the out of box standalone, run cli in gui mode (--gui switch)
      - navigate to /subsystem=logging/console-handler=CONSOLE/formatter
      - press right mouse button/writte-attribute/OK
      - submit the generated cli command

      /subsystem=logging/console-handler=CONSOLE/:write-attribute(name=formatter,value=%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%e%n)
      {
          "outcome" => "failed",
          "failure-description" => "WFLYCTL0097: Wrong type for formatter. Expected [EXPRESSION, STRING] but was LIST",
          "rolled-back" => true
      }
      

      Attachments

        Issue Links

          Activity

            People

              jdenise@redhat.com Jean Francois Denise
              pkremens@redhat.com Petr Kremensky (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: