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:
Issue exists in wildfly as well, and also see this with normal CLI write-attribute operation for attributes like STRING type and expression-allowed => true, Example: /interface=management:write-attribute(name=inet-address,value=${jboss.bind.address.management:127.0.0.1}) From https://github.com/wildfly/wildfly/blob/master/cli/src/main/java/org/jboss/as/cli/ArgumentValueConverter.java?source=c#L71 toSet = ModelNode.fromString(value); This returns 'IllegalArgumentException: Invalid character: $' then '$' is set by ArgumentValueCallbackHandler Create an upstream issue as well https://issues.jboss.org/browse/WFLY-2051
Alexey Loubyansky <alex> made a comment on jira WFLY-2051 It's actually a bug in the CLI command line parser. I.e. it parses any expression like ${xxxx} to simply $. This would fix it https://github.com/aloubyansky/wildfly/commit/255fa8e50a98cae9bffbe7dd60adc6d518548341
Alexey Loubyansky <alex> updated the status of jira WFLY-2051 to Resolved
Alexey Loubyansky <alex> made a comment on jira WFLY-2051 Fixed.
*** Bug 1054214 has been marked as a duplicate of this bug. ***
Verified on EAP 6.2.0.DR2
*** Bug 1066228 has been marked as a duplicate of this bug. ***