CLI script with if/else is not handling special characters strings with parenthesis in JBoss EAP 6

Solution Verified - Updated

Environment

Red Hat JBoss Enterprise Application Platform (EAP) 6.4.2

Issue

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")'

Resolution

Apply JBoss EAP 6.4 Cumulative Patch (CP) 6 when available.

Root Cause

The bugzilla This content is not included.1249773 covers this issue.

Components

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.