Doubt related with osgi bundles version in felix after package uninstall in aem | Community
Skip to main content
cquser_cquser
Level 2
October 16, 2015
Solved

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

  • October 16, 2015
  • 2 replies
  • 951 views

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by joerghoh

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

2 replies

Lokesh_Shivalingaiah
Level 10
October 16, 2015

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

joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
October 16, 2015

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