Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-7736

OSGi Installer: Update OSGi installer's resource state in case of configuration/bundle updates outside of the OSGi Installer when JCR Installer Writeback is disabled

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Installer Core 3.8.10, Installer Configuration Factory 1.2.0
    • None
    • Installer
    • None

    Description

      Currently the state of an OSGi installer's resource is only updated whenever it is newly added to the queue and subsequently processed. Manual configuration/bundle changes outside of the OSGi installer don't change the OSGi installer's resource state.

      Actually, with the help of the BundleListener (https://osgi.org/javadoc/r5/core/org/osgi/framework/BundleListener.html) and the ConfigurationListener (https://osgi.org/javadoc/r5/cmpn/org/osgi/service/cm/ConfigurationListener.html) the OSGi installer could mark the according OSGi installer resources as IGNORED in case they have been overwritten.

      The tricky part is to filter out those event's which have been caused by the OSGi installer itself. The resource's digest cannot be used for that, as that is completely calculated by the Provider (i.e. is different between JCR and file provider).

      That would improve the effectiveness of the health check from SLING-5888 and also allows the OSGi installer to better enforce its state during reinstallation in the future.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kwin Konrad Windszus
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: