Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. 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
            rchakrab Ranabir Chakraborty
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: