Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
fileinstall-3.4.2
-
None
-
Mac OS X 10.10, Apache Karaf 3.0.2
Description
In working with FileInstall, I've discovered an odd condition under which bundles installed by FileInstall will never be started, even though their start level is reached. This seems to happen most frequently when the active level is set to a value less than the start level.
In that case, the initial scan will install bundles in the deploy directory, but not start them. That is expected. However, once the required start level is reached, the installed bundles are only started if a BundleEvent is fired after the start level change. Otherwise, the stateChanged flag in FileInstall will not be set, and we will never start the installed bundles.