Attempting to set a value using the `jboss-cli` tool that contained a property would only save the character `$` in the value instead of the property unless the entire value was contained in double-quotes. This was because the CLI command line parser would incorrectly parse any `${X}` expression as only `$` unless it was contained in double-quotes.
The command line parser has been fixed in this release, so that attributes with properties will be correctly parsed even if they are not contained in double-quotes.
Description of problem:
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}")
Version-Release number of selected component (if applicable):
How reproducible:
Steps to Reproduce:
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)
Actual results:
wsdl-host=$
Expected results:
wsdl-host=${jboss.bind.address:127.0.0.1}
Workaround
in dialog box enclose the value in double quotes
Additional info:
Description of problem: 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}") Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 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) Actual results: wsdl-host=$ Expected results: wsdl-host=${jboss.bind.address:127.0.0.1} Workaround in dialog box enclose the value in double quotes Additional info: