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

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

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.0.0.Alpha12
    • Fix Version/s: 2.0.0.Beta7
    • Component/s: CLI
    • Labels:
      None
    • Steps to Reproduce:
      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")'

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                aloubyansky Oleksiy Lubyanskyy
                Reporter:
                thofman Tomas Hofman
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: