Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Doubt related with osgi bundles version in felix after package uninstall in aem

Avatar

Level 3

I have a doubt regarding osgi bundles version in felix console after uninstalling the package in aem. The build plan is that the packages are installed incremently with the build version like 1.13.1 then 1.13.2 and so on.

If there is a package package-1.13.4.zip installed; which has a bundle bundle-1.13.4.jar

After uninstalling the package-1.13.4.zip; as per my understanding; the bundle-1.13.4.jar should be removed from apps/myproject/install as well as from the felix console; the bundle that should be installed in felix console should be bundle-1.13.3.jar; since it was the version which was installed prior to 1.13.4

But when I uninstall package-1.13.4.zip ; neither the bundle-1.13.4.jar gets removed from apps/myproject/install nor the bundle-1.13.4.jar gets removed from the felix console. Is there something wrong with my understanding?

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Hi,

a number of different factors come into play here:

  1. first of all you need to make sure, that your package filters only deploy the new bundle and do not purge any older version of the bundle already in place. Only when you have this you can safely deinstall the new package and get the new bundle removed as well.
  2. Uninstalling the 1.13.4 package will remove the 1.13.4 bundle as well (under the constraints of 1), which in turns makes 1.13.3 of the bundle active (if it's still present in the system).

To your problem: I guess, that uninstalling the package does not recreate properly the state before the installation, so please check your filter definitions of the content package.

kind regards,
Jörg

View solution in original post

2 Replies

Avatar

Correct answer by
Employee Advisor

Hi,

a number of different factors come into play here:

  1. first of all you need to make sure, that your package filters only deploy the new bundle and do not purge any older version of the bundle already in place. Only when you have this you can safely deinstall the new package and get the new bundle removed as well.
  2. Uninstalling the 1.13.4 package will remove the 1.13.4 bundle as well (under the constraints of 1), which in turns makes 1.13.3 of the bundle active (if it's still present in the system).

To your problem: I guess, that uninstalling the package does not recreate properly the state before the installation, so please check your filter definitions of the content package.

kind regards,
Jörg

Avatar

Level 10

When you uninstall a bundle, it would still be present but that bundle will not be active !