Variable replacement in config file does not work correctly
-----------------------------------------------------------
Key: JCR-2516
URL: https://issues.apache.org/jira/browse/JCR-2516
Project: Jackrabbit Content Repository
Issue Type: Bug
Components: config
Affects Versions: 2.0.0, 2.0-beta6, 2.0-beta5, 2.0-beta4, 2.0-beta3,
2.0-beta1, 2.0-alpha11, 2.0-alpha9, 2.0-alpha8, 2.0-alpha7, 2.0-alpha4,
2.0-alpha3, 2.0-alpha1, 1.6.1, 1.6.0, 1.5.7
Reporter: Sebastien BISSON
Variable replacement works only with parameters within configuration file.
It should work for all attribute (eg. class attribute of PersistenceManager)
I've fixed the bug by modifying
org.apache.jackrabbit.core.config.ConfigurationParser class and made the
following changes :
protected BeanConfig parseBeanConfig(Element parent, String name)
throws ConfigurationException {
...
// Bean implementation class
String className = *replaceVariables(getAttribute(element,
CLASS_ATTRIBUTE))*;
...
}
and
protected BeanConfig parseBeanConfig(Element element)
throws ConfigurationException {
// Bean implementation class
String className = replaceVariables(getAttribute(element,
CLASS_ATTRIBUTE));
...
}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.