Details
-
Bug
-
Resolution: Done
-
Major
-
None
-
None
Description
When a bundle that is in use gets undeployed through the mgmnt API the revision service goes down (which is in itself a problem) and bundle.uninstall() is called. Because the bundle is in use the revision is not removed from the environment, which is ok.
Later, when the last user gets uninstalled we go through the BundleLifecycle.removeBundleRevision again, which fails to undeploy the stale revision because it was undeployed previously already. There is no code path the removes the revision from the environment in that case.