Jackrabbit Content Repository
  1. Jackrabbit Content Repository
  2. JCR-2516

Variable replacement in config file does not work correctly

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.5.7, 1.6, 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
    • Fix Version/s: None
    • Component/s: config
    • Labels:
      None

      Description

      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)); ... }

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Sebastien BISSON
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development