You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Jim Prantzalos (Created) (JIRA)" <ji...@apache.org> on 2012/02/26 21:28:49 UTC

[jira] [Created] (CONFIGURATION-481) Variable interpolation across files broken in 1.7 & 1.8

Variable interpolation across files broken in 1.7 & 1.8
-------------------------------------------------------

                 Key: CONFIGURATION-481
                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-481
             Project: Commons Configuration
          Issue Type: Bug
          Components: Interpolation
    Affects Versions: 1.8, 1.7
         Environment: Any OS, but have verified with Windows 7 and AIX 6.1, running Java 1.6.0.
            Reporter: Jim Prantzalos


With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.

For example:
 
global.properties
-----
myvar=abc
 
test.xml
-----
<products>
  <product name="abc">
    <desc>${myvar}-product</desc>
  </product>
</products>
 
config.xml
-----
<properties fileName="global.properties"/>
<xml fileName="test.xml" config-name="test">
  <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
</xml>

When I try to retrieve the value, like so:
 
combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc")
 
I get "${myvar}-product" instead of "abc-product".

This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (CONFIGURATION-481) Variable interpolation across files broken in 1.7 & 1.8

Posted by "Jim Prantzalos (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CONFIGURATION-481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13216838#comment-13216838 ] 

Jim Prantzalos edited comment on CONFIGURATION-481 at 2/26/12 9:03 PM:
-----------------------------------------------------------------------

Added a test case that demonstrates the issue using 1.6, 1.7, and 1.8.
                
      was (Author: dprantzalos):
    A test case that demonstrates the issue using 1.6, 1.7, and 1.8.
                  
> Variable interpolation across files broken in 1.7 & 1.8
> -------------------------------------------------------
>
>                 Key: CONFIGURATION-481
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-481
>             Project: Commons Configuration
>          Issue Type: Bug
>          Components: Interpolation
>    Affects Versions: 1.7, 1.8
>         Environment: Any OS, but have verified with Windows 7 and AIX 6.1, running Java 1.6.0.
>            Reporter: Jim Prantzalos
>         Attachments: ApacheBug-CONFIGURATION-481.7z
>
>
> With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the $\{myvar\} syntax.
> For example:
> global.properties:
> {noformat}myvar=abc{noformat}
> test.xml:
> {code:xml}
> <products>
>   <product name="abc">
>     <desc>${myvar}-product</desc>
>   </product>
> </products>
> {code}
> config.xml:
> {code:xml}
> <properties fileName="global.properties"/>
> <xml fileName="test.xml" config-name="test">
>   <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
> </xml>
> {code}
> When I try to retrieve the value, like so:
> {code}combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc"){code}
> I get "$\{myvar\}-product" instead of "abc-product".
> This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CONFIGURATION-481) Variable interpolation across files broken in 1.7 & 1.8

Posted by "Jim Prantzalos (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CONFIGURATION-481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jim Prantzalos updated CONFIGURATION-481:
-----------------------------------------

    Description: 
With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.

For example:

global.properties:
{noformat}myvar=abc{noformat}

test.xml:
{code:xml}<products><product name="abc"><desc>${myvar}-product</desc></product></products>{code}
 
config.xml:
{code:xml}<properties fileName="global.properties"/><xml fileName="test.xml" config-name="test"><expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/></xml>{code}

When I try to retrieve the value, like so:

{code:java}combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc"){code}

I get "${myvar}-product" instead of "abc-product".

This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

  was:
With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.

For example:

global.properties:
{noformat} 
myvar=abc
{noformat}

test.xml:
{code:xml}
<products>
  <product name="abc">
    <desc>${myvar}-product</desc>
  </product>
</products>
{code}
 
config.xml:
{code:xml}
<properties fileName="global.properties"/>
<xml fileName="test.xml" config-name="test">
  <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
</xml>
{code}

When I try to retrieve the value, like so:

{code:java} 
combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc")
{code}

I get "${myvar}-product" instead of "abc-product".

This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

    
> Variable interpolation across files broken in 1.7 & 1.8
> -------------------------------------------------------
>
>                 Key: CONFIGURATION-481
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-481
>             Project: Commons Configuration
>          Issue Type: Bug
>          Components: Interpolation
>    Affects Versions: 1.7, 1.8
>         Environment: Any OS, but have verified with Windows 7 and AIX 6.1, running Java 1.6.0.
>            Reporter: Jim Prantzalos
>
> With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.
> For example:
> global.properties:
> {noformat}myvar=abc{noformat}
> test.xml:
> {code:xml}<products><product name="abc"><desc>${myvar}-product</desc></product></products>{code}
>  
> config.xml:
> {code:xml}<properties fileName="global.properties"/><xml fileName="test.xml" config-name="test"><expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/></xml>{code}
> When I try to retrieve the value, like so:
> {code:java}combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc"){code}
> I get "${myvar}-product" instead of "abc-product".
> This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CONFIGURATION-481) Variable interpolation across files broken in 1.7 & 1.8

Posted by "Jim Prantzalos (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CONFIGURATION-481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jim Prantzalos updated CONFIGURATION-481:
-----------------------------------------

    Description: 
With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.

For example:

global.properties:
{noformat}myvar=abc{noformat}

test.xml:
{code:xml}
<products>
  <product name="abc">
    <desc>${myvar}-product</desc>
  </product>
</products>
{code}

config.xml:
{code:xml}
<properties fileName="global.properties"/>
<xml fileName="test.xml" config-name="test">
  <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
</xml>
{code}

When I try to retrieve the value, like so:

{code}combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc"){code}

I get "${myvar}-product" instead of "abc-product".

This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

  was:
With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.

For example:

global.properties:
{noformat}myvar=abc{noformat}

test.xml:
<products>
  <product name="abc">
    <desc>${myvar}-product</desc>
  </product>
</products>
 
config.xml:
{code:xml}
<properties fileName="global.properties"/>
<xml fileName="test.xml" config-name="test">
  <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
</xml>
{code}

When I try to retrieve the value, like so:

{code}combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc"){code}

I get "${myvar}-product" instead of "abc-product".

This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

    
> Variable interpolation across files broken in 1.7 & 1.8
> -------------------------------------------------------
>
>                 Key: CONFIGURATION-481
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-481
>             Project: Commons Configuration
>          Issue Type: Bug
>          Components: Interpolation
>    Affects Versions: 1.7, 1.8
>         Environment: Any OS, but have verified with Windows 7 and AIX 6.1, running Java 1.6.0.
>            Reporter: Jim Prantzalos
>
> With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.
> For example:
> global.properties:
> {noformat}myvar=abc{noformat}
> test.xml:
> {code:xml}
> <products>
>   <product name="abc">
>     <desc>${myvar}-product</desc>
>   </product>
> </products>
> {code}
> config.xml:
> {code:xml}
> <properties fileName="global.properties"/>
> <xml fileName="test.xml" config-name="test">
>   <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
> </xml>
> {code}
> When I try to retrieve the value, like so:
> {code}combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc"){code}
> I get "${myvar}-product" instead of "abc-product".
> This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CONFIGURATION-481) Variable interpolation across files broken in 1.7 & 1.8

Posted by "Jim Prantzalos (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CONFIGURATION-481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jim Prantzalos updated CONFIGURATION-481:
-----------------------------------------

    Description: 
With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.

For example:

global.properties:
{noformat}myvar=abc{noformat}

test.xml:
{code:xml}
<products>
  <product name="abc">
    <desc>\${myvar}-product</desc>
  </product>
</products>
{code}

config.xml:
{code:xml}
<properties fileName="global.properties"/>
<xml fileName="test.xml" config-name="test">
  <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
</xml>
{code}

When I try to retrieve the value, like so:

{code}combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc"){code}

I get "$\{myvar\}-product" instead of "abc-product".

This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

  was:
With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.

For example:

global.properties:
{noformat}myvar=abc{noformat}

test.xml:
{code:xml}
<products>
  <product name="abc">
    <desc>$\{myvar}-product</desc>
  </product>
</products>
{code}

config.xml:
{code:xml}
<properties fileName="global.properties"/>
<xml fileName="test.xml" config-name="test">
  <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
</xml>
{code}

When I try to retrieve the value, like so:

{code}combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc"){code}

I get "$\{myvar\}-product" instead of "abc-product".

This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

    
> Variable interpolation across files broken in 1.7 & 1.8
> -------------------------------------------------------
>
>                 Key: CONFIGURATION-481
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-481
>             Project: Commons Configuration
>          Issue Type: Bug
>          Components: Interpolation
>    Affects Versions: 1.7, 1.8
>         Environment: Any OS, but have verified with Windows 7 and AIX 6.1, running Java 1.6.0.
>            Reporter: Jim Prantzalos
>
> With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.
> For example:
> global.properties:
> {noformat}myvar=abc{noformat}
> test.xml:
> {code:xml}
> <products>
>   <product name="abc">
>     <desc>\${myvar}-product</desc>
>   </product>
> </products>
> {code}
> config.xml:
> {code:xml}
> <properties fileName="global.properties"/>
> <xml fileName="test.xml" config-name="test">
>   <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
> </xml>
> {code}
> When I try to retrieve the value, like so:
> {code}combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc"){code}
> I get "$\{myvar\}-product" instead of "abc-product".
> This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CONFIGURATION-481) Variable interpolation across files broken in 1.7 & 1.8

Posted by "Oliver Heger (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CONFIGURATION-481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oliver Heger resolved CONFIGURATION-481.
----------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.9

Fixed in subversion in revision 1295276. Thanks for spotting this and the tests.
                
> Variable interpolation across files broken in 1.7 & 1.8
> -------------------------------------------------------
>
>                 Key: CONFIGURATION-481
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-481
>             Project: Commons Configuration
>          Issue Type: Bug
>          Components: Interpolation
>    Affects Versions: 1.7, 1.8
>         Environment: Any OS, but have verified with Windows 7 and AIX 6.1, running Java 1.6.0.
>            Reporter: Jim Prantzalos
>            Assignee: Oliver Heger
>             Fix For: 1.9
>
>         Attachments: ApacheBug-CONFIGURATION-481.7z
>
>
> With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the $\{myvar\} syntax.
> For example:
> global.properties:
> {noformat}myvar=abc{noformat}
> test.xml:
> {code:xml}
> <products>
>   <product name="abc">
>     <desc>${myvar}-product</desc>
>   </product>
> </products>
> {code}
> config.xml:
> {code:xml}
> <properties fileName="global.properties"/>
> <xml fileName="test.xml" config-name="test">
>   <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
> </xml>
> {code}
> When I try to retrieve the value, like so:
> {code}combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc"){code}
> I get "$\{myvar\}-product" instead of "abc-product".
> This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CONFIGURATION-481) Variable interpolation across files broken in 1.7 & 1.8

Posted by "Jim Prantzalos (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CONFIGURATION-481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jim Prantzalos updated CONFIGURATION-481:
-----------------------------------------

    Description: 
With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.

For example:

global.properties:
{noformat}myvar=abc{noformat}

test.xml:
{code:xml}
<products>
  <product name="abc">
    <desc>$\{myvar\}-product</desc>
  </product>
</products>
{code}

config.xml:
{code:xml}
<properties fileName="global.properties"/>
<xml fileName="test.xml" config-name="test">
  <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
</xml>
{code}

When I try to retrieve the value, like so:

{code}combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc"){code}

I get "$\{myvar\}-product" instead of "abc-product".

This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

  was:
With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.

For example:

global.properties:
{noformat}myvar=abc{noformat}

test.xml:
{code:xml}
<products>
  <product name="abc">
    <desc>${myvar}-product</desc>
  </product>
</products>
{code}

config.xml:
{code:xml}
<properties fileName="global.properties"/>
<xml fileName="test.xml" config-name="test">
  <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
</xml>
{code}

When I try to retrieve the value, like so:

{code}combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc"){code}

I get "${myvar}-product" instead of "abc-product".

This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

    
> Variable interpolation across files broken in 1.7 & 1.8
> -------------------------------------------------------
>
>                 Key: CONFIGURATION-481
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-481
>             Project: Commons Configuration
>          Issue Type: Bug
>          Components: Interpolation
>    Affects Versions: 1.7, 1.8
>         Environment: Any OS, but have verified with Windows 7 and AIX 6.1, running Java 1.6.0.
>            Reporter: Jim Prantzalos
>
> With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.
> For example:
> global.properties:
> {noformat}myvar=abc{noformat}
> test.xml:
> {code:xml}
> <products>
>   <product name="abc">
>     <desc>$\{myvar\}-product</desc>
>   </product>
> </products>
> {code}
> config.xml:
> {code:xml}
> <properties fileName="global.properties"/>
> <xml fileName="test.xml" config-name="test">
>   <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
> </xml>
> {code}
> When I try to retrieve the value, like so:
> {code}combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc"){code}
> I get "$\{myvar\}-product" instead of "abc-product".
> This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CONFIGURATION-481) Variable interpolation across files broken in 1.7 & 1.8

Posted by "Jim Prantzalos (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CONFIGURATION-481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jim Prantzalos updated CONFIGURATION-481:
-----------------------------------------

    Description: 
With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.

For example:

global.properties:
{noformat}myvar=abc{noformat}

test.xml:
{code:xml}
<products>
  <product name="abc">
    <desc>$\{myvar}-product</desc>
  </product>
</products>
{code}

config.xml:
{code:xml}
<properties fileName="global.properties"/>
<xml fileName="test.xml" config-name="test">
  <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
</xml>
{code}

When I try to retrieve the value, like so:

{code}combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc"){code}

I get "$\{myvar\}-product" instead of "abc-product".

This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

  was:
With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.

For example:

global.properties:
{noformat}myvar=abc{noformat}

test.xml:
{code:xml}
<products>
  <product name="abc">
    <desc>${myvar}-product</desc>
  </product>
</products>
{code}

config.xml:
{code:xml}
<properties fileName="global.properties"/>
<xml fileName="test.xml" config-name="test">
  <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
</xml>
{code}

When I try to retrieve the value, like so:

{code}combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc"){code}

I get "$\{myvar\}-product" instead of "abc-product".

This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

    
> Variable interpolation across files broken in 1.7 & 1.8
> -------------------------------------------------------
>
>                 Key: CONFIGURATION-481
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-481
>             Project: Commons Configuration
>          Issue Type: Bug
>          Components: Interpolation
>    Affects Versions: 1.7, 1.8
>         Environment: Any OS, but have verified with Windows 7 and AIX 6.1, running Java 1.6.0.
>            Reporter: Jim Prantzalos
>
> With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.
> For example:
> global.properties:
> {noformat}myvar=abc{noformat}
> test.xml:
> {code:xml}
> <products>
>   <product name="abc">
>     <desc>$\{myvar}-product</desc>
>   </product>
> </products>
> {code}
> config.xml:
> {code:xml}
> <properties fileName="global.properties"/>
> <xml fileName="test.xml" config-name="test">
>   <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
> </xml>
> {code}
> When I try to retrieve the value, like so:
> {code}combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc"){code}
> I get "$\{myvar\}-product" instead of "abc-product".
> This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CONFIGURATION-481) Variable interpolation across files broken in 1.7 & 1.8

Posted by "Jim Prantzalos (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CONFIGURATION-481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jim Prantzalos updated CONFIGURATION-481:
-----------------------------------------

    Description: 
With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the $\{myvar\} syntax.

For example:

global.properties:
{noformat}myvar=abc{noformat}

test.xml:
{code:xml}
<products>
  <product name="abc">
    <desc>${myvar}-product</desc>
  </product>
</products>
{code}

config.xml:
{code:xml}
<properties fileName="global.properties"/>
<xml fileName="test.xml" config-name="test">
  <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
</xml>
{code}

When I try to retrieve the value, like so:

{code}combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc"){code}

I get "$\{myvar\}-product" instead of "abc-product".

This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

  was:
With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.

For example:

global.properties:
{noformat}myvar=abc{noformat}

test.xml:
{code:xml}
<products>
  <product name="abc">
    <desc>$\{myvar\}-product</desc>
  </product>
</products>
{code}

config.xml:
{code:xml}
<properties fileName="global.properties"/>
<xml fileName="test.xml" config-name="test">
  <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
</xml>
{code}

When I try to retrieve the value, like so:

{code}combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc"){code}

I get "$\{myvar\}-product" instead of "abc-product".

This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

    
> Variable interpolation across files broken in 1.7 & 1.8
> -------------------------------------------------------
>
>                 Key: CONFIGURATION-481
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-481
>             Project: Commons Configuration
>          Issue Type: Bug
>          Components: Interpolation
>    Affects Versions: 1.7, 1.8
>         Environment: Any OS, but have verified with Windows 7 and AIX 6.1, running Java 1.6.0.
>            Reporter: Jim Prantzalos
>
> With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the $\{myvar\} syntax.
> For example:
> global.properties:
> {noformat}myvar=abc{noformat}
> test.xml:
> {code:xml}
> <products>
>   <product name="abc">
>     <desc>${myvar}-product</desc>
>   </product>
> </products>
> {code}
> config.xml:
> {code:xml}
> <properties fileName="global.properties"/>
> <xml fileName="test.xml" config-name="test">
>   <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
> </xml>
> {code}
> When I try to retrieve the value, like so:
> {code}combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc"){code}
> I get "$\{myvar\}-product" instead of "abc-product".
> This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CONFIGURATION-481) Variable interpolation across files broken in 1.7 & 1.8

Posted by "Jim Prantzalos (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CONFIGURATION-481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jim Prantzalos updated CONFIGURATION-481:
-----------------------------------------

    Attachment: ApacheBug-CONFIGURATION-481.7z

A test case that demonstrates the issue using 1.6, 1.7, and 1.8.
                
> Variable interpolation across files broken in 1.7 & 1.8
> -------------------------------------------------------
>
>                 Key: CONFIGURATION-481
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-481
>             Project: Commons Configuration
>          Issue Type: Bug
>          Components: Interpolation
>    Affects Versions: 1.7, 1.8
>         Environment: Any OS, but have verified with Windows 7 and AIX 6.1, running Java 1.6.0.
>            Reporter: Jim Prantzalos
>         Attachments: ApacheBug-CONFIGURATION-481.7z
>
>
> With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the $\{myvar\} syntax.
> For example:
> global.properties:
> {noformat}myvar=abc{noformat}
> test.xml:
> {code:xml}
> <products>
>   <product name="abc">
>     <desc>${myvar}-product</desc>
>   </product>
> </products>
> {code}
> config.xml:
> {code:xml}
> <properties fileName="global.properties"/>
> <xml fileName="test.xml" config-name="test">
>   <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
> </xml>
> {code}
> When I try to retrieve the value, like so:
> {code}combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc"){code}
> I get "$\{myvar\}-product" instead of "abc-product".
> This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CONFIGURATION-481) Variable interpolation across files broken in 1.7 & 1.8

Posted by "Jim Prantzalos (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CONFIGURATION-481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13220433#comment-13220433 ] 

Jim Prantzalos commented on CONFIGURATION-481:
----------------------------------------------

Patched into 1.8 and rebuilt. Works great. Thank you!
                
> Variable interpolation across files broken in 1.7 & 1.8
> -------------------------------------------------------
>
>                 Key: CONFIGURATION-481
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-481
>             Project: Commons Configuration
>          Issue Type: Bug
>          Components: Interpolation
>    Affects Versions: 1.7, 1.8
>         Environment: Any OS, but have verified with Windows 7 and AIX 6.1, running Java 1.6.0.
>            Reporter: Jim Prantzalos
>            Assignee: Oliver Heger
>             Fix For: 1.9
>
>         Attachments: ApacheBug-CONFIGURATION-481.7z
>
>
> With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the $\{myvar\} syntax.
> For example:
> global.properties:
> {noformat}myvar=abc{noformat}
> test.xml:
> {code:xml}
> <products>
>   <product name="abc">
>     <desc>${myvar}-product</desc>
>   </product>
> </products>
> {code}
> config.xml:
> {code:xml}
> <properties fileName="global.properties"/>
> <xml fileName="test.xml" config-name="test">
>   <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
> </xml>
> {code}
> When I try to retrieve the value, like so:
> {code}combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc"){code}
> I get "$\{myvar\}-product" instead of "abc-product".
> This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CONFIGURATION-481) Variable interpolation across files broken in 1.7 & 1.8

Posted by "Oliver Heger (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CONFIGURATION-481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13219533#comment-13219533 ] 

Oliver Heger commented on CONFIGURATION-481:
--------------------------------------------

I am working on a fix (or better a re-implementation) based on the {{ConfigurationInterpolator}} class and its feature to construct a chain of interpolators. The idea is that {{DefaultConfigurationBuilder}} adds a special parent interpolator to the configurations it creates which queries the newly constructed {{CombinedConfiguration}}.

However, I must admit it is a mystery to me how this feature could work in the past. (I also did not find any breaking change.) It was certainly an undocumented feature which only worked by acciddent.
                
> Variable interpolation across files broken in 1.7 & 1.8
> -------------------------------------------------------
>
>                 Key: CONFIGURATION-481
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-481
>             Project: Commons Configuration
>          Issue Type: Bug
>          Components: Interpolation
>    Affects Versions: 1.7, 1.8
>         Environment: Any OS, but have verified with Windows 7 and AIX 6.1, running Java 1.6.0.
>            Reporter: Jim Prantzalos
>            Assignee: Oliver Heger
>         Attachments: ApacheBug-CONFIGURATION-481.7z
>
>
> With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the $\{myvar\} syntax.
> For example:
> global.properties:
> {noformat}myvar=abc{noformat}
> test.xml:
> {code:xml}
> <products>
>   <product name="abc">
>     <desc>${myvar}-product</desc>
>   </product>
> </products>
> {code}
> config.xml:
> {code:xml}
> <properties fileName="global.properties"/>
> <xml fileName="test.xml" config-name="test">
>   <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
> </xml>
> {code}
> When I try to retrieve the value, like so:
> {code}combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc"){code}
> I get "$\{myvar\}-product" instead of "abc-product".
> This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CONFIGURATION-481) Variable interpolation across files broken in 1.7 & 1.8

Posted by "Jim Prantzalos (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CONFIGURATION-481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jim Prantzalos updated CONFIGURATION-481:
-----------------------------------------

    Description: 
With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.

For example:

{code} 
global.properties:
------------------
myvar=abc

test.xml:
---------
<products>
  <product name="abc">
    <desc>${myvar}-product</desc>
  </product>
</products>
 
config.xml:
-----------
<properties fileName="global.properties"/>
<xml fileName="test.xml" config-name="test">
  <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
</xml>
{code}

When I try to retrieve the value, like so:

{code:java} 
combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc")
{code:java}

I get "${myvar}-product" instead of "abc-product".

This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

  was:
With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.

For example:

{{
global.properties:
------------------
myvar=abc
 
test.xml:
---------
<products>
  <product name="abc">
    <desc>${myvar}-product</desc>
  </product>
</products>
 
config.xml:
-----------
<properties fileName="global.properties"/>
<xml fileName="test.xml" config-name="test">
  <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
</xml>
}}

When I try to retrieve the value, like so:
 
{{combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc")}}

I get "${myvar}-product" instead of "abc-product".

This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

    
> Variable interpolation across files broken in 1.7 & 1.8
> -------------------------------------------------------
>
>                 Key: CONFIGURATION-481
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-481
>             Project: Commons Configuration
>          Issue Type: Bug
>          Components: Interpolation
>    Affects Versions: 1.7, 1.8
>         Environment: Any OS, but have verified with Windows 7 and AIX 6.1, running Java 1.6.0.
>            Reporter: Jim Prantzalos
>
> With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.
> For example:
> {code} 
> global.properties:
> ------------------
> myvar=abc
> test.xml:
> ---------
> <products>
>   <product name="abc">
>     <desc>${myvar}-product</desc>
>   </product>
> </products>
>  
> config.xml:
> -----------
> <properties fileName="global.properties"/>
> <xml fileName="test.xml" config-name="test">
>   <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
> </xml>
> {code}
> When I try to retrieve the value, like so:
> {code:java} 
> combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc")
> {code:java}
> I get "${myvar}-product" instead of "abc-product".
> This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CONFIGURATION-481) Variable interpolation across files broken in 1.7 & 1.8

Posted by "Jim Prantzalos (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CONFIGURATION-481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jim Prantzalos updated CONFIGURATION-481:
-----------------------------------------

    Description: 
With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.

For example:

global.properties:
{noformat}myvar=abc{noformat}

test.xml:
{code:xml}
<products>
  <product name="abc">
    <desc>$\{myvar\}-product</desc>
  </product>
</products>
{code}

config.xml:
{code:xml}
<properties fileName="global.properties"/>
<xml fileName="test.xml" config-name="test">
  <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
</xml>
{code}

When I try to retrieve the value, like so:

{code}combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc"){code}

I get "$\{myvar\}-product" instead of "abc-product".

This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

  was:
With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.

For example:

global.properties:
{noformat}myvar=abc{noformat}

test.xml:
{code:xml}
<products>
  <product name="abc">
    <desc>$\X{myvar}-product</desc>
  </product>
</products>
{code}

config.xml:
{code:xml}
<properties fileName="global.properties"/>
<xml fileName="test.xml" config-name="test">
  <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
</xml>
{code}

When I try to retrieve the value, like so:

{code}combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc"){code}

I get "$\{myvar\}-product" instead of "abc-product".

This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

    
> Variable interpolation across files broken in 1.7 & 1.8
> -------------------------------------------------------
>
>                 Key: CONFIGURATION-481
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-481
>             Project: Commons Configuration
>          Issue Type: Bug
>          Components: Interpolation
>    Affects Versions: 1.7, 1.8
>         Environment: Any OS, but have verified with Windows 7 and AIX 6.1, running Java 1.6.0.
>            Reporter: Jim Prantzalos
>
> With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.
> For example:
> global.properties:
> {noformat}myvar=abc{noformat}
> test.xml:
> {code:xml}
> <products>
>   <product name="abc">
>     <desc>$\{myvar\}-product</desc>
>   </product>
> </products>
> {code}
> config.xml:
> {code:xml}
> <properties fileName="global.properties"/>
> <xml fileName="test.xml" config-name="test">
>   <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
> </xml>
> {code}
> When I try to retrieve the value, like so:
> {code}combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc"){code}
> I get "$\{myvar\}-product" instead of "abc-product".
> This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CONFIGURATION-481) Variable interpolation across files broken in 1.7 & 1.8

Posted by "Jim Prantzalos (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CONFIGURATION-481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jim Prantzalos updated CONFIGURATION-481:
-----------------------------------------

    Description: 
With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.

For example:

{{monospaced}}
global.properties
-----
myvar=abc
 
test.xml
-----
<products>
  <product name="abc">
    <desc>${myvar}-product</desc>
  </product>
</products>
 
config.xml
-----
<properties fileName="global.properties"/>
<xml fileName="test.xml" config-name="test">
  <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
</xml>
{{monospaced}}

When I try to retrieve the value, like so:
 
{{monospaced}}
combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc")
{{monospaced}}
 
I get "${myvar}-product" instead of "abc-product".

This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

  was:
With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.

For example:
 
global.properties
-----
myvar=abc
 
test.xml
-----
<products>
  <product name="abc">
    <desc>${myvar}-product</desc>
  </product>
</products>
 
config.xml
-----
<properties fileName="global.properties"/>
<xml fileName="test.xml" config-name="test">
  <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
</xml>

When I try to retrieve the value, like so:
 
combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc")
 
I get "${myvar}-product" instead of "abc-product".

This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

    
> Variable interpolation across files broken in 1.7 & 1.8
> -------------------------------------------------------
>
>                 Key: CONFIGURATION-481
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-481
>             Project: Commons Configuration
>          Issue Type: Bug
>          Components: Interpolation
>    Affects Versions: 1.7, 1.8
>         Environment: Any OS, but have verified with Windows 7 and AIX 6.1, running Java 1.6.0.
>            Reporter: Jim Prantzalos
>
> With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.
> For example:
> {{monospaced}}
> global.properties
> -----
> myvar=abc
>  
> test.xml
> -----
> <products>
>   <product name="abc">
>     <desc>${myvar}-product</desc>
>   </product>
> </products>
>  
> config.xml
> -----
> <properties fileName="global.properties"/>
> <xml fileName="test.xml" config-name="test">
>   <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
> </xml>
> {{monospaced}}
> When I try to retrieve the value, like so:
>  
> {{monospaced}}
> combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc")
> {{monospaced}}
>  
> I get "${myvar}-product" instead of "abc-product".
> This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CONFIGURATION-481) Variable interpolation across files broken in 1.7 & 1.8

Posted by "Jim Prantzalos (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CONFIGURATION-481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jim Prantzalos updated CONFIGURATION-481:
-----------------------------------------

    Description: 
With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.

For example:

global.properties:
{noformat}myvar=abc{noformat}

test.xml:
{code:xml}
<products>
  <product name="abc">
    <desc>${myvar}-product</desc>
  </product>
</products>
{code}

config.xml:
{code:xml}
<properties fileName="global.properties"/>
<xml fileName="test.xml" config-name="test">
  <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
</xml>
{code}

When I try to retrieve the value, like so:

{code}combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc"){code}

I get "$\{myvar\}-product" instead of "abc-product".

This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

  was:
With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.

For example:

global.properties:
{noformat}myvar=abc{noformat}

test.xml:
{code:xml}
<products>
  <product name="abc">
    <desc>$\{myvar\}-product</desc>
  </product>
</products>
{code}

config.xml:
{code:xml}
<properties fileName="global.properties"/>
<xml fileName="test.xml" config-name="test">
  <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
</xml>
{code}

When I try to retrieve the value, like so:

{code}combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc"){code}

I get "$\{myvar\}-product" instead of "abc-product".

This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

    
> Variable interpolation across files broken in 1.7 & 1.8
> -------------------------------------------------------
>
>                 Key: CONFIGURATION-481
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-481
>             Project: Commons Configuration
>          Issue Type: Bug
>          Components: Interpolation
>    Affects Versions: 1.7, 1.8
>         Environment: Any OS, but have verified with Windows 7 and AIX 6.1, running Java 1.6.0.
>            Reporter: Jim Prantzalos
>
> With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.
> For example:
> global.properties:
> {noformat}myvar=abc{noformat}
> test.xml:
> {code:xml}
> <products>
>   <product name="abc">
>     <desc>${myvar}-product</desc>
>   </product>
> </products>
> {code}
> config.xml:
> {code:xml}
> <properties fileName="global.properties"/>
> <xml fileName="test.xml" config-name="test">
>   <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
> </xml>
> {code}
> When I try to retrieve the value, like so:
> {code}combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc"){code}
> I get "$\{myvar\}-product" instead of "abc-product".
> This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CONFIGURATION-481) Variable interpolation across files broken in 1.7 & 1.8

Posted by "Jim Prantzalos (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CONFIGURATION-481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jim Prantzalos updated CONFIGURATION-481:
-----------------------------------------

    Description: 
With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.

For example:

global.properties:
{noformat}myvar=abc{noformat}

test.xml:
<products>
  <product name="abc">
    <desc>${myvar}-product</desc>
  </product>
</products>
 
config.xml:
{code:xml}
<properties fileName="global.properties"/>
<xml fileName="test.xml" config-name="test">
  <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
</xml>
{code}

When I try to retrieve the value, like so:

{code}combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc"){code}

I get "${myvar}-product" instead of "abc-product".

This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

  was:
With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.

For example:

global.properties:
{noformat}myvar=abc{noformat}

test.xml:
{code:xml}
<products>
  <product name="abc">
    <desc>${myvar}-product</desc>
  </product>
</products>
{code:xml}
 
config.xml:
<properties fileName="global.properties"/>
<xml fileName="test.xml" config-name="test">
  <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
</xml>

When I try to retrieve the value, like so:

{code:java}combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc"){code:java}

I get "${myvar}-product" instead of "abc-product".

This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

    
> Variable interpolation across files broken in 1.7 & 1.8
> -------------------------------------------------------
>
>                 Key: CONFIGURATION-481
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-481
>             Project: Commons Configuration
>          Issue Type: Bug
>          Components: Interpolation
>    Affects Versions: 1.7, 1.8
>         Environment: Any OS, but have verified with Windows 7 and AIX 6.1, running Java 1.6.0.
>            Reporter: Jim Prantzalos
>
> With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.
> For example:
> global.properties:
> {noformat}myvar=abc{noformat}
> test.xml:
> <products>
>   <product name="abc">
>     <desc>${myvar}-product</desc>
>   </product>
> </products>
>  
> config.xml:
> {code:xml}
> <properties fileName="global.properties"/>
> <xml fileName="test.xml" config-name="test">
>   <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
> </xml>
> {code}
> When I try to retrieve the value, like so:
> {code}combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc"){code}
> I get "${myvar}-product" instead of "abc-product".
> This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CONFIGURATION-481) Variable interpolation across files broken in 1.7 & 1.8

Posted by "Jim Prantzalos (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CONFIGURATION-481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jim Prantzalos updated CONFIGURATION-481:
-----------------------------------------

    Description: 
With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.

For example:

global.properties:
{noformat}myvar=abc{noformat}

test.xml:
{code:xml}
<products>
  <product name="abc">
    <desc>$\X{myvar}-product</desc>
  </product>
</products>
{code}

config.xml:
{code:xml}
<properties fileName="global.properties"/>
<xml fileName="test.xml" config-name="test">
  <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
</xml>
{code}

When I try to retrieve the value, like so:

{code}combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc"){code}

I get "$\{myvar\}-product" instead of "abc-product".

This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

  was:
With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.

For example:

global.properties:
{noformat}myvar=abc{noformat}

test.xml:
{code:xml}
<products>
  <product name="abc">
    <desc>\${myvar}-product</desc>
  </product>
</products>
{code}

config.xml:
{code:xml}
<properties fileName="global.properties"/>
<xml fileName="test.xml" config-name="test">
  <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
</xml>
{code}

When I try to retrieve the value, like so:

{code}combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc"){code}

I get "$\{myvar\}-product" instead of "abc-product".

This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

    
> Variable interpolation across files broken in 1.7 & 1.8
> -------------------------------------------------------
>
>                 Key: CONFIGURATION-481
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-481
>             Project: Commons Configuration
>          Issue Type: Bug
>          Components: Interpolation
>    Affects Versions: 1.7, 1.8
>         Environment: Any OS, but have verified with Windows 7 and AIX 6.1, running Java 1.6.0.
>            Reporter: Jim Prantzalos
>
> With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.
> For example:
> global.properties:
> {noformat}myvar=abc{noformat}
> test.xml:
> {code:xml}
> <products>
>   <product name="abc">
>     <desc>$\X{myvar}-product</desc>
>   </product>
> </products>
> {code}
> config.xml:
> {code:xml}
> <properties fileName="global.properties"/>
> <xml fileName="test.xml" config-name="test">
>   <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
> </xml>
> {code}
> When I try to retrieve the value, like so:
> {code}combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc"){code}
> I get "$\{myvar\}-product" instead of "abc-product".
> This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CONFIGURATION-481) Variable interpolation across files broken in 1.7 & 1.8

Posted by "Jim Prantzalos (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CONFIGURATION-481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jim Prantzalos updated CONFIGURATION-481:
-----------------------------------------

    Description: 
With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.

For example:

global.properties:
{noformat}myvar=abc{noformat}

test.xml:
{code:xml}
<products>
  <product name="abc">
    <desc>${myvar}-product</desc>
  </product>
</products>
{code:xml}
 
config.xml:
<properties fileName="global.properties"/>
<xml fileName="test.xml" config-name="test">
  <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
</xml>

When I try to retrieve the value, like so:

{code:java}combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc"){code:java}

I get "${myvar}-product" instead of "abc-product".

This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

  was:
With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.

For example:

{noformat}
global.properties:
myvar=abc

test.xml:
<products>
  <product name="abc">
    <desc>${myvar}-product</desc>
  </product>
</products>
 
config.xml:
<properties fileName="global.properties"/>
<xml fileName="test.xml" config-name="test">
  <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
</xml>
{noformat}

When I try to retrieve the value, like so:

{code:java}combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc"){code:java}

I get "${myvar}-product" instead of "abc-product".

This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

    
> Variable interpolation across files broken in 1.7 & 1.8
> -------------------------------------------------------
>
>                 Key: CONFIGURATION-481
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-481
>             Project: Commons Configuration
>          Issue Type: Bug
>          Components: Interpolation
>    Affects Versions: 1.7, 1.8
>         Environment: Any OS, but have verified with Windows 7 and AIX 6.1, running Java 1.6.0.
>            Reporter: Jim Prantzalos
>
> With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.
> For example:
> global.properties:
> {noformat}myvar=abc{noformat}
> test.xml:
> {code:xml}
> <products>
>   <product name="abc">
>     <desc>${myvar}-product</desc>
>   </product>
> </products>
> {code:xml}
>  
> config.xml:
> <properties fileName="global.properties"/>
> <xml fileName="test.xml" config-name="test">
>   <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
> </xml>
> When I try to retrieve the value, like so:
> {code:java}combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc"){code:java}
> I get "${myvar}-product" instead of "abc-product".
> This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CONFIGURATION-481) Variable interpolation across files broken in 1.7 & 1.8

Posted by "Jim Prantzalos (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CONFIGURATION-481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jim Prantzalos updated CONFIGURATION-481:
-----------------------------------------

    Description: 
With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.

For example:

global.properties:
{noformat}myvar=abc{noformat}

test.xml:
{code:xml}
<products>
  <product name="abc">
    <desc>${myvar}-product</desc>
  </product>
</products>
{code:xml}
 
config.xml:
{code:xml}
<properties fileName="global.properties"/>
<xml fileName="test.xml" config-name="test">
  <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
</xml>
{code:xml}

When I try to retrieve the value, like so:

{code:java}combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc"){code:java}

I get "${myvar}-product" instead of "abc-product".

This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

  was:
With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.

For example:

global.properties:
{noformat}myvar=abc{noformat}

test.xml:
{code:xml}<products><product name="abc"><desc>${myvar}-product</desc></product></products>{code}
 
config.xml:
{code:xml}<properties fileName="global.properties"/><xml fileName="test.xml" config-name="test"><expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/></xml>{code}

When I try to retrieve the value, like so:

{code:java}combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc"){code}

I get "${myvar}-product" instead of "abc-product".

This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

    
> Variable interpolation across files broken in 1.7 & 1.8
> -------------------------------------------------------
>
>                 Key: CONFIGURATION-481
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-481
>             Project: Commons Configuration
>          Issue Type: Bug
>          Components: Interpolation
>    Affects Versions: 1.7, 1.8
>         Environment: Any OS, but have verified with Windows 7 and AIX 6.1, running Java 1.6.0.
>            Reporter: Jim Prantzalos
>
> With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.
> For example:
> global.properties:
> {noformat}myvar=abc{noformat}
> test.xml:
> {code:xml}
> <products>
>   <product name="abc">
>     <desc>${myvar}-product</desc>
>   </product>
> </products>
> {code:xml}
>  
> config.xml:
> {code:xml}
> <properties fileName="global.properties"/>
> <xml fileName="test.xml" config-name="test">
>   <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
> </xml>
> {code:xml}
> When I try to retrieve the value, like so:
> {code:java}combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc"){code:java}
> I get "${myvar}-product" instead of "abc-product".
> This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CONFIGURATION-481) Variable interpolation across files broken in 1.7 & 1.8

Posted by "Jim Prantzalos (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CONFIGURATION-481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jim Prantzalos updated CONFIGURATION-481:
-----------------------------------------

    Description: 
With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.

For example:

global.properties:
{noformat}myvar=abc{noformat}

test.xml:
{noformat}
<products>
  <product name="abc">
    <desc>${myvar}-product</desc>
  </product>
</products>
{noformat}
 
config.xml:
{noformat}
<properties fileName="global.properties"/>
<xml fileName="test.xml" config-name="test">
  <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
</xml>
{noformat}

When I try to retrieve the value, like so:

{noformat}combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc"){noformat}

I get "${myvar}-product" instead of "abc-product".

This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

  was:
With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.

For example:

global.properties:
{noformat}myvar=abc{noformat}

test.xml:
{code:xml}
<products>
  <product name="abc">
    <desc>${myvar}-product</desc>
  </product>
</products>
{code:xml}
 
config.xml:
{code:xml}
<properties fileName="global.properties"/>
<xml fileName="test.xml" config-name="test">
  <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
</xml>
{code:xml}

When I try to retrieve the value, like so:

{code:java}combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc"){code:java}

I get "${myvar}-product" instead of "abc-product".

This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

    
> Variable interpolation across files broken in 1.7 & 1.8
> -------------------------------------------------------
>
>                 Key: CONFIGURATION-481
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-481
>             Project: Commons Configuration
>          Issue Type: Bug
>          Components: Interpolation
>    Affects Versions: 1.7, 1.8
>         Environment: Any OS, but have verified with Windows 7 and AIX 6.1, running Java 1.6.0.
>            Reporter: Jim Prantzalos
>
> With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.
> For example:
> global.properties:
> {noformat}myvar=abc{noformat}
> test.xml:
> {noformat}
> <products>
>   <product name="abc">
>     <desc>${myvar}-product</desc>
>   </product>
> </products>
> {noformat}
>  
> config.xml:
> {noformat}
> <properties fileName="global.properties"/>
> <xml fileName="test.xml" config-name="test">
>   <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
> </xml>
> {noformat}
> When I try to retrieve the value, like so:
> {noformat}combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc"){noformat}
> I get "${myvar}-product" instead of "abc-product".
> This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CONFIGURATION-481) Variable interpolation across files broken in 1.7 & 1.8

Posted by "Jim Prantzalos (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CONFIGURATION-481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jim Prantzalos updated CONFIGURATION-481:
-----------------------------------------

    Description: 
With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.

For example:

global.properties:
{noformat} 
myvar=abc
{noformat}

test.xml:
{code:xml}
<products>
  <product name="abc">
    <desc>${myvar}-product</desc>
  </product>
</products>
{code}
 
config.xml:
{code:xml}
<properties fileName="global.properties"/>
<xml fileName="test.xml" config-name="test">
  <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
</xml>
{code}

When I try to retrieve the value, like so:

{code:java} 
combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc")
{code}

I get "${myvar}-product" instead of "abc-product".

This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

  was:
With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.

For example:

global.properties:
{code} 
myvar=abc
{code}

test.xml:
{code}
<products>
  <product name="abc">
    <desc>${myvar}-product</desc>
  </product>
</products>
{code}
 
config.xml:
{code}
<properties fileName="global.properties"/>
<xml fileName="test.xml" config-name="test">
  <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
</xml>
{code}

When I try to retrieve the value, like so:

{code} 
combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc")
{code}

I get "${myvar}-product" instead of "abc-product".

This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

    
> Variable interpolation across files broken in 1.7 & 1.8
> -------------------------------------------------------
>
>                 Key: CONFIGURATION-481
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-481
>             Project: Commons Configuration
>          Issue Type: Bug
>          Components: Interpolation
>    Affects Versions: 1.7, 1.8
>         Environment: Any OS, but have verified with Windows 7 and AIX 6.1, running Java 1.6.0.
>            Reporter: Jim Prantzalos
>
> With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.
> For example:
> global.properties:
> {noformat} 
> myvar=abc
> {noformat}
> test.xml:
> {code:xml}
> <products>
>   <product name="abc">
>     <desc>${myvar}-product</desc>
>   </product>
> </products>
> {code}
>  
> config.xml:
> {code:xml}
> <properties fileName="global.properties"/>
> <xml fileName="test.xml" config-name="test">
>   <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
> </xml>
> {code}
> When I try to retrieve the value, like so:
> {code:java} 
> combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc")
> {code}
> I get "${myvar}-product" instead of "abc-product".
> This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CONFIGURATION-481) Variable interpolation across files broken in 1.7 & 1.8

Posted by "Jim Prantzalos (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CONFIGURATION-481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jim Prantzalos updated CONFIGURATION-481:
-----------------------------------------

    Description: 
With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.

For example:

{{
global.properties:
------------------
myvar=abc
 
test.xml:
---------
<products>
  <product name="abc">
    <desc>${myvar}-product</desc>
  </product>
</products>
 
config.xml:
-----------
<properties fileName="global.properties"/>
<xml fileName="test.xml" config-name="test">
  <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
</xml>
}}

When I try to retrieve the value, like so:
 
{{combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc")}}

I get "${myvar}-product" instead of "abc-product".

This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

  was:
With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.

For example:

{{monospaced}}
global.properties
-----
myvar=abc
 
test.xml
-----
<products>
  <product name="abc">
    <desc>${myvar}-product</desc>
  </product>
</products>
 
config.xml
-----
<properties fileName="global.properties"/>
<xml fileName="test.xml" config-name="test">
  <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
</xml>
{{monospaced}}

When I try to retrieve the value, like so:
 
{{monospaced}}
combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc")
{{monospaced}}
 
I get "${myvar}-product" instead of "abc-product".

This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

    
> Variable interpolation across files broken in 1.7 & 1.8
> -------------------------------------------------------
>
>                 Key: CONFIGURATION-481
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-481
>             Project: Commons Configuration
>          Issue Type: Bug
>          Components: Interpolation
>    Affects Versions: 1.7, 1.8
>         Environment: Any OS, but have verified with Windows 7 and AIX 6.1, running Java 1.6.0.
>            Reporter: Jim Prantzalos
>
> With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.
> For example:
> {{
> global.properties:
> ------------------
> myvar=abc
>  
> test.xml:
> ---------
> <products>
>   <product name="abc">
>     <desc>${myvar}-product</desc>
>   </product>
> </products>
>  
> config.xml:
> -----------
> <properties fileName="global.properties"/>
> <xml fileName="test.xml" config-name="test">
>   <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
> </xml>
> }}
> When I try to retrieve the value, like so:
>  
> {{combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc")}}
> I get "${myvar}-product" instead of "abc-product".
> This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CONFIGURATION-481) Variable interpolation across files broken in 1.7 & 1.8

Posted by "Jim Prantzalos (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CONFIGURATION-481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jim Prantzalos updated CONFIGURATION-481:
-----------------------------------------

    Description: 
With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.

For example:

global.properties:
{code} 
myvar=abc
{code}

test.xml:
{code}
<products>
  <product name="abc">
    <desc>${myvar}-product</desc>
  </product>
</products>
{code}
 
config.xml:
{code}
<properties fileName="global.properties"/>
<xml fileName="test.xml" config-name="test">
  <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
</xml>
{code}

When I try to retrieve the value, like so:

{code} 
combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc")
{code}

I get "${myvar}-product" instead of "abc-product".

This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

  was:
With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.

For example:

global.properties:
{code} 
myvar=abc
{code}

test.xml:
{code:xml}
<products>
  <product name="abc">
    <desc>${myvar}-product</desc>
  </product>
</products>
{code}
 
config.xml:
{code:xml}
<properties fileName="global.properties"/>
<xml fileName="test.xml" config-name="test">
  <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
</xml>
{code}

When I try to retrieve the value, like so:

{code} 
combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc")
{code}

I get "${myvar}-product" instead of "abc-product".

This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

    
> Variable interpolation across files broken in 1.7 & 1.8
> -------------------------------------------------------
>
>                 Key: CONFIGURATION-481
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-481
>             Project: Commons Configuration
>          Issue Type: Bug
>          Components: Interpolation
>    Affects Versions: 1.7, 1.8
>         Environment: Any OS, but have verified with Windows 7 and AIX 6.1, running Java 1.6.0.
>            Reporter: Jim Prantzalos
>
> With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.
> For example:
> global.properties:
> {code} 
> myvar=abc
> {code}
> test.xml:
> {code}
> <products>
>   <product name="abc">
>     <desc>${myvar}-product</desc>
>   </product>
> </products>
> {code}
>  
> config.xml:
> {code}
> <properties fileName="global.properties"/>
> <xml fileName="test.xml" config-name="test">
>   <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
> </xml>
> {code}
> When I try to retrieve the value, like so:
> {code} 
> combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc")
> {code}
> I get "${myvar}-product" instead of "abc-product".
> This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CONFIGURATION-481) Variable interpolation across files broken in 1.7 & 1.8

Posted by "Jim Prantzalos (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CONFIGURATION-481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jim Prantzalos updated CONFIGURATION-481:
-----------------------------------------

    Description: 
With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.

For example:

{noformat}
global.properties:
myvar=abc

test.xml:
<products>
  <product name="abc">
    <desc>${myvar}-product</desc>
  </product>
</products>
 
config.xml:
<properties fileName="global.properties"/>
<xml fileName="test.xml" config-name="test">
  <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
</xml>
{noformat}

When I try to retrieve the value, like so:

{code:java}combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc"){code:java}

I get "${myvar}-product" instead of "abc-product".

This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

  was:
With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.

For example:

global.properties:
{noformat}myvar=abc{noformat}

test.xml:
{noformat}
<products>
  <product name="abc">
    <desc>${myvar}-product</desc>
  </product>
</products>
{noformat}
 
config.xml:
{noformat}
<properties fileName="global.properties"/>
<xml fileName="test.xml" config-name="test">
  <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
</xml>
{noformat}

When I try to retrieve the value, like so:

{noformat}combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc"){noformat}

I get "${myvar}-product" instead of "abc-product".

This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

    
> Variable interpolation across files broken in 1.7 & 1.8
> -------------------------------------------------------
>
>                 Key: CONFIGURATION-481
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-481
>             Project: Commons Configuration
>          Issue Type: Bug
>          Components: Interpolation
>    Affects Versions: 1.7, 1.8
>         Environment: Any OS, but have verified with Windows 7 and AIX 6.1, running Java 1.6.0.
>            Reporter: Jim Prantzalos
>
> With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.
> For example:
> {noformat}
> global.properties:
> myvar=abc
> test.xml:
> <products>
>   <product name="abc">
>     <desc>${myvar}-product</desc>
>   </product>
> </products>
>  
> config.xml:
> <properties fileName="global.properties"/>
> <xml fileName="test.xml" config-name="test">
>   <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
> </xml>
> {noformat}
> When I try to retrieve the value, like so:
> {code:java}combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc"){code:java}
> I get "${myvar}-product" instead of "abc-product".
> This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CONFIGURATION-481) Variable interpolation across files broken in 1.7 & 1.8

Posted by "Jim Prantzalos (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CONFIGURATION-481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jim Prantzalos updated CONFIGURATION-481:
-----------------------------------------

    Description: 
With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.

For example:

global.properties:
{code} 
myvar=abc
{code}

test.xml:
{code:xml}
<products>
  <product name="abc">
    <desc>${myvar}-product</desc>
  </product>
</products>
{code}
 
config.xml:
{code:xml}
<properties fileName="global.properties"/>
<xml fileName="test.xml" config-name="test">
  <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
</xml>
{code}

When I try to retrieve the value, like so:

{code} 
combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc")
{code}

I get "${myvar}-product" instead of "abc-product".

This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

  was:
With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.

For example:

{code} 
global.properties:
------------------
myvar=abc

test.xml:
---------
<products>
  <product name="abc">
    <desc>${myvar}-product</desc>
  </product>
</products>
 
config.xml:
-----------
<properties fileName="global.properties"/>
<xml fileName="test.xml" config-name="test">
  <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
</xml>
{code}

When I try to retrieve the value, like so:

{code:java} 
combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc")
{code:java}

I get "${myvar}-product" instead of "abc-product".

This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

    
> Variable interpolation across files broken in 1.7 & 1.8
> -------------------------------------------------------
>
>                 Key: CONFIGURATION-481
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-481
>             Project: Commons Configuration
>          Issue Type: Bug
>          Components: Interpolation
>    Affects Versions: 1.7, 1.8
>         Environment: Any OS, but have verified with Windows 7 and AIX 6.1, running Java 1.6.0.
>            Reporter: Jim Prantzalos
>
> With Commons Configuration 1.6, I was able to declare a variable in a properties file, and then reference it in a XML file using the ${myvar} syntax.
> For example:
> global.properties:
> {code} 
> myvar=abc
> {code}
> test.xml:
> {code:xml}
> <products>
>   <product name="abc">
>     <desc>${myvar}-product</desc>
>   </product>
> </products>
> {code}
>  
> config.xml:
> {code:xml}
> <properties fileName="global.properties"/>
> <xml fileName="test.xml" config-name="test">
>   <expressionEngine config-class="org.apache.commons.configuration.tree.xpath.XPathExpressionEngine"/>
> </xml>
> {code}
> When I try to retrieve the value, like so:
> {code} 
> combinedConfig.getConfiguration("test").configurationAt("products/product[@name='abc']", true).getString("desc")
> {code}
> I get "${myvar}-product" instead of "abc-product".
> This was working in Commons Configuration 1.6, but seems to be broken in 1.7 and 1.8.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira