Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-10410

[GSS](7.1.0) WFCORE-1399 Failure when resolving an expression with the default value containing a '$' at the end

XMLWordPrintable

    • Hide

      This issue can be workaround by using the nested expression.

      For example, change the following configuration from:

      <system-properties>
          <property name="regex_prop_test" value="${my.regex.test:^default$}"/>
      </system-properties>
      

      to:

      <system-properties>
          <property name="default_regex" value="^default$"/>
          <property name="regex_prop_test" value="${my.regex.test:${default_regex}}"/>
      </system-properties>
      
      Show
      This issue can be workaround by using the nested expression. For example, change the following configuration from: <system-properties> <property name= "regex_prop_test" value= "${my.regex.test:^default$}" /> </system-properties> to: <system-properties> <property name= "default_regex" value= "^default$" /> <property name= "regex_prop_test" value= "${my.regex.test:${default_regex}}" /> </system-properties>

      JBoss EAP 7.0.x fails to starts up when resolving an expression with the default value containing a '$' at the end.

      For example, when the following system property is configured in standalone.xml:

      <system-properties>
          <property name="regex_prop_test" value="${my.regex.test:^default$}"/>
      </system-properties>
      

      start-up fails with the following ERROR message:

      ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([("system-property" => "regex_prop_test")]) - failure description: "WFLYCTL0370: Incomplete expression: ${my.regex.test:^default$}"
      

      Same issue was reported in the upstream JIRA WFCORE-1399 and already fixed in wildfly-core master branch. Please backport the fix to EAP 7.0.x's wildfly-core 2.x branch.

              ehugonne1@redhat.com Emmanuel Hugonnet
              chaowan@redhat.com Chao Wang
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: