You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Sebastien BISSON (JIRA)" <ji...@apache.org> on 2010/02/24 11:46:27 UTC
[jira] Created: (JCR-2516) Variable replacement in config file does
not work correctly
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.
[jira] Updated: (JCR-2516) Variable replacement in config file does
not work correctly
Posted by "Stefan Guggisberg (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JCR-2516?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stefan Guggisberg updated JCR-2516:
-----------------------------------
Priority: Minor (was: Major)
Issue Type: Improvement (was: Bug)
adjusted issue type and priority
> 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: Improvement
> Components: config
> Affects Versions: 1.5.7, 1.6.0, 1.6.1, 2.0-alpha1, 2.0-alpha3, 2.0-alpha4, 2.0-alpha7, 2.0-alpha8, 2.0-alpha9, 2.0-alpha11, 2.0-beta1, 2.0-beta3, 2.0-beta4, 2.0-beta5, 2.0-beta6, 2.0.0
> Reporter: Sebastien BISSON
> Priority: Minor
>
> 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.