[jboss-jira] [JBoss JIRA] (AS7-6432) Incorrect evaluation of sytem property for expression substitution

Ondřej Chaloupka (JIRA) jira-events at lists.jboss.org
Thu Jan 31 11:31:51 EST 2013


Ondřej Chaloupka created AS7-6432:
-------------------------------------

             Summary: Incorrect evaluation of sytem property for expression substitution
                 Key: AS7-6432
                 URL: https://issues.jboss.org/browse/AS7-6432
             Project: Application Server 7
          Issue Type: Bug
          Components: Domain Management
    Affects Versions: 7.2.0.Alpha1
            Reporter: Ondřej Chaloupka
            Assignee: Brian Stansberry


Finally I think that I've got a way how to resolve expressions on VM where container resides.

My test case:
https://github.com/ochaloup/jboss-as/blob/expression-substitution-run-in-server/testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/management/api/expression/ExpressionSubstitutionInContainerTestCase.java

>From this I've found issues for system property evaluation. I mean the case when System.getProperty(someName) is called.

The application should get the evaluated value from expression but instead of it it gets the default value from expression.

The problematic test cases are
testSystemPropertyEvaluation - there is defined system property by calling System.setProperty and it's expected that the expression which uses this defined property will evaluate itself to the value of the System.setProperty. For the way of :resolve-expression it works fine but for getting value with System.getProperty the old default value is returned.
setInnerExpression - it defines two levels of evaluation of expression and it seems that then the System.getProperty on the second level of evaluation does not get the evaluated/substituted value

I hope that the test code will be more comprehensible than my explanation.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the jboss-jira mailing list