Bug 1443209 - [GSS](6.4.z) WFCORE-1399 Failure when resolving an expression with the default value containing a '$' at the end
Summary: [GSS](6.4.z) WFCORE-1399 Failure when resolving an expression with the defaul...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Domain Management
Version: 6.4.14
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: CR1
: EAP 6.4.17
Assignee: Peter Palaga
QA Contact: Ivo Hradek
URL:
Whiteboard:
Depends On:
Blocks: eap6417-payload
TreeView+ depends on / blocked
 
Reported: 2017-04-18 18:29 UTC by Masafumi Miura
Modified: 2020-05-14 15:59 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-09-06 13:34:44 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker JBEAP-10406 0 Major Pull Request Sent [GSS](7.0.z) WFCORE-1399 Failure when resolving an expression with the default value containing a '$' at the end 2017-08-25 04:16:37 UTC
Red Hat Issue Tracker JBEAP-10410 0 Major Verified [GSS](7.1.0) WFCORE-1399 Failure when resolving an expression with the default value containing a '$' at the end 2017-08-25 04:16:37 UTC
Red Hat Issue Tracker WFCORE-1399 0 Major Resolved Failure when resolving an expression with the default value containing a '$' at the end 2017-08-25 04:16:37 UTC
Red Hat Knowledge Base (Solution) 3016061 0 None None None 2017-07-12 22:22:18 UTC

Description Masafumi Miura 2017-04-18 18:29:50 UTC
### 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>

Comment 2 Ivo Hradek 2017-08-24 12:14:56 UTC
Verified for EAP-6.4.17-CP.CR4;

Comment 3 Petr Penicka 2017-09-06 13:34:44 UTC
Released on 2017-09-05 as part of the EAP 6.4.17 release.


Note You need to log in before you can comment on or make changes to this bug.