Uploaded image for project: 'Turbine'
  1. Turbine
  2. TRB-77

TurbineFactoryService : Calling SubsetConfiguration.getKeys(prefix) having a prefix with "." appended.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Core 2.3.3
    • None
    • Fulcrum
    • None
    • Windows, JDK 1.6

    Description

      In org.apache.turbine.services.factory.TurbineFactoryService OBJECT_FACTORY is initilaizied with "factory.", i.e. with a dot at the end.

      In the org.apache.turbine.services.factory.TurbineFactoryService.init() what getConfiguration() returns is a org.apache.commons.configuration.SubsetConfiguration. Then org.apache.commons.configuration.Configuration.getKeys(OBJECT_FACTORY) is returning only null factories.

      This is due to the dot at the end of OBJECT_FACTORY.

      The solution is that no dot should be set for this method, cft.: https://issues.apache.org/jira/browse/CONFIGURATION-29.

      If not fixed, any factory call will return a new instance.

      Attachments

        Activity

          People

            tv Thomas Vandahl
            gm_kall Georg Kallidis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified