Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-464

JAAS service configuration tracker does not unregister services or respond to service updates

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • 2.2.0
    • karaf
    • None

    Description

      The class org.apache.karaf.jaas.config.impl.OsgiConfiguration contains a java.util.List<JaasRealm> which is intended to track jaas realms added via blueprint via it's register/unregister pair using the whiteboard pattern. This list is not mutated properly during unregister, since the list is not keyed by name or other id, and the passed in value during remove is a proxy. Thus, after doing an "update" on a bundle that contains a jaas configuration, the list grows by one, but contains a stale service reference.

      When this occurs, a subsequent call to getAppConfigurationEntry() causes a runtime exception, "org.osgi.service.blueprint.container.ServiceUnavailableException". No jaas-based authentication can happen after this.

      Attachments

        Issue Links

          Activity

            People

              iocanel Ioannis Canellos
              kwesterfeld Kurt Westerfeld
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: