Bug 1443209
| Summary: | [GSS](6.4.z) WFCORE-1399 Failure when resolving an expression with the default value containing a '$' at the end | ||
|---|---|---|---|
| Product: | [JBoss] JBoss Enterprise Application Platform 6 | Reporter: | Masafumi Miura <mmiura> |
| Component: | Domain Management | Assignee: | Peter Palaga <ppalaga> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Ivo Hradek <ihradek> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.4.14 | CC: | bmaxwell, brian.stansberry, dandread, fgavrilo, ihradek, ppalaga |
| Target Milestone: | CR1 | ||
| Target Release: | EAP 6.4.17 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-09-06 13:34:44 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1450092 | ||
Verified for EAP-6.4.17-CP.CR4; Released on 2017-09-05 as part of the EAP 6.4.17 release. |
### Description of problem: JBoss EAP 6.4 fails to starts up when resolving an expression with the default value containing a '$' at the end. ### How reproducible: Anytime when setting an expression with the default value containing a '$' at the end. ### Steps to Reproduce: 1. Modify standalone.xml and configure system property which contains the default with '$' at the end. For example: <system-properties> <property name="regex_prop_test" value="${my.regex.test:^default$}"/> </system-properties> 2. Start JBoss EAP 6.4 ### Actual results: JBoss failed to start-up with the following ERROR message: ~~~ ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014612: Operation ("add") failed - address: ([("system-property" => "regex_prop_test")]) - failure description: "JBAS013494: Incomplete expression: ${my.regex.test:^default$}" ~~~ ### Expected results: JBoss starts up succesfully without the ERROR message. ### Additional info: It looks this issue is a regression caused by a new feature https://issues.jboss.org/browse/WFCORE-179, which was incorporated since EAP 6.4.0. And this issue was reported in the upstream JIRA https://issues.jboss.org/browse/WFCORE-1399 and already fixed in upstream. Please backport the fix to EAP 6.4 branch. ### Workaround: This issue can be workaround by the following configuration using the new feature "nested expression" introduced by WFCORE-179: <system-properties> <property name="default_regex" value="^default$"/> <property name="regex_prop_test" value="${my.regex.test:${default_regex}}"/> </system-properties>