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

[GSS](7.4.z) WFCORE-5765 - Unable to check the result containing whitespace with the equals to (==) comparison operator in the "if-else" control flow in JBoss-CLI

XMLWordPrintable

      It's not possible to check the result containing whitespace with the equals to (==) comparison operator in the "if-else" control flow in JBoss-CLI.

      For example, when you have the following configuration in your standalone.xml

          <system-properties>
              <property name="foobar" value="foo bar"/>
          </system-properties>
      

      then execute the following CLI:

      if (result == "foo bar") of /system-property=foobar:read-attribute(name=value)
        echo system property foobar == foo bar
      else
        echo system property foobar != foo bar
      end-if
      

      Expected result:

      system property foobar == foo bar"
      

      Actual result:

      system property foobar != foo bar
      

              rchakrab Ranabir Chakraborty
              rhn-support-mmiura Masafumi Miura
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: