Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-868

CLI if/else is not handling special characters strings with parenthesis

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 2.0.0.Beta7
    • 2.0.0.Alpha12
    • CLI
    • None
    • Hide

      Create and run CLI script like the following:

      if (outcome == success && result.value != "a64180c0)e7187af86b435229de904104") of /system-property=test:read-resource
      /system-property=test:write-attribute(name=value,value="a64180c0)e7187af86b435229de904104")
      end-if
      if (outcome != success) of /system-property=test:read-resource
      /system-property=test:add(value="a64180c0)e7187af86b435229de904104")
      end-if

      Show
      Create and run CLI script like the following: if (outcome == success && result.value != "a64180c0)e7187af86b435229de904104") of /system-property=test:read-resource /system-property=test:write-attribute(name=value,value="a64180c0)e7187af86b435229de904104") end-if if (outcome != success) of /system-property=test:read-resource /system-property=test:add(value="a64180c0)e7187af86b435229de904104") end-if

    Description

      When using CLI if-else scripting that uses a string that contains parenthesis it fails with the following message:

      Failed to handle 'if (outcome == success && result.value != "a64180c0)e7187af86b435229de904104") of /system-property=test:read-resource': Unexpected operation at 49 in '(outcome == success && result.value != "a64180c0)e7187af86b435229de904104")'

      Attachments

        Activity

          People

            olubyans@redhat.com Alexey Loubyansky
            thofman Tomas Hofman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: