Description of problem: When using "if" construct in CLI, we are unable to check result undefined Version-Release number of selected component (if applicable): EAP 6.1, EAP 6.2 How reproducible: Configure an EAP instance with an undefined propertie (e.g.: ssl protocol ... <connector name="https" protocol="HTTP/1.1" scheme="https" socket-binding="https" enable-lookups="false" secure="true"> <ssl name="https" key-alias="ALIAS" password="password" certificate-key-file="${jboss.server.config.dir}/keystore.jks" /> </connector> .... Check that a read-attribute return undefined: /subsystem=web/connector=https/ssl=configuration/:read-attribute(name=protocol) { "outcome" => "success", "result" => undefined } Define an if construct checking for undefined: [standalone@localhost:9999 /] if (result == undefined) of /subsystem=web/connector=https/ssl=configuration/:read-attribute(name=protocol) [standalone@localhost:9999 / #] /subsystem=web/connector=https/ssl=configuration/:write-attribute(name=protocol,value="TLSv1,TLSv1.1") #1 /subsystem=web/connector=https/ssl=configuration:write-attribute(name=protocol,value="TLSv1,TLSv1.1") [standalone@localhost:9999 / #] end-if Verify that the attribute is not changed: /subsystem=web/connector=https/ssl=configuration/:read-attribute(name=protocol) { "outcome" => "success", "result" => undefined } Steps to Reproduce: 1. 2. 3. Actual results: If condition not evaluated correctly Expected results: If condition works correctly with undefined Additional info:
https://github.com/jbossas/jboss-eap/pull/2146
Verified on EAP 6.4.0.ER1