Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-2051

CLI write attribute dialog for string value should enclose value in generated command to double quotes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 8.0.0.CR1
    • 8.0.0.Alpha4
    • CLI
    • None

    Description

      Wildfly issue for https://bugzilla.redhat.com/show_bug.cgi?id=988283
      
      String value entered in write attribute dialog is written to command without double quotes, which is wrong in many cases
      
      Eg. when user enteres in dialog value ${jboss.bind.address:127.0.0.1}
      following command is generated:
      
      /subsystem=webservices/:write-attribute(name=wsdl-host,value=${jboss.bind.address:127.0.0.1})
      
      Correctly should be generated command 
      /subsystem=webservices/:write-attribute(name=wsdl-host,value="${jboss.bind.address:127.0.0.1}")
      
      1. start AS
        ./bin/standalone.sh
      2. start CLI GUI 
        ./bin/jboss-cli.sh --gui &
      3. click on node subsystem=webservices of /
      4. right click on wsdl-host and select write-attribute
      5. enter value ${jboss.bind.address:127.0.0.1} and click OK
      6. submit generated command
      7. reload node
        click on node subsystem=webservices of / (close node)
        click on node subsystem=webservices of / (open node)
      
      Result is wsdl-host=$ instead of wsdl-host=${jboss.bind.address:127.0.0.1}
      
      
      Workaround: in dialog box enclose the value in double quotes
      

      Attachments

        Activity

          People

            olubyans@redhat.com Alexey Loubyansky
            chaowan@redhat.com Chao Wang
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: