Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-5315

Unexpected release of ConfigurationAdmin service in RegionConfigurationSupport

    XMLWordPrintableJSON

    Details

      Description

      In commit 978a710, RegionConfigurationSupport has been modified to obtain the ConfigurationAdmin service through the ConfigurationAdmin's bundle context (in getConfigAdmin(), around line 633). However, services acquired through that method are then released using the impersonated bundle's context (for example in the finally block of configureComponentHolder(ComponentHolder), around line 186, and the finally block of getConfigurationInfo(TargetedPID, TargetedPID, ComponentHolder, BundleContext), around line 465).

      This cause leak of service on the ConfigurationAdmin's bundle context, as well as unexpected early release of services on impersonated bundle contexts, causing an IllegalStateException("Configuration Admin service has been unregistered") being thrown in ConfigurationAdminImpl#getConfigurationManager().

        Attachments

          Activity

            People

            • Assignee:
              djencks David Jencks
              Reporter:
              mjameswh James Watkins-Harvey
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: