You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Guillaume Nodet (JIRA)" <ji...@apache.org> on 2009/04/28 20:04:30 UTC

[jira] Created: (FELIX-1093) features/uninstall behaves different in version selection than features/install

features/uninstall behaves different in version selection than features/install
-------------------------------------------------------------------------------

                 Key: FELIX-1093
                 URL: https://issues.apache.org/jira/browse/FELIX-1093
             Project: Felix
          Issue Type: Bug
          Components: Karaf
            Reporter: Guillaume Nodet


When using "features/install xxx" without a version info, than it takes the latest available version.
When using "features/uninstall xxx" without a version info, than it complains if the version isn't 0.0.0. 


Lars Heinemann added a comment - 11/Feb/09 02:16 AM - edited
Uninstalling a feature which contains other features which contain bundles will end up in having the most top feature in state uninstalled but the sub-features and components are no touched.

For example:

Feature MyFeature
  | --- MySubFeature1
  |         | --- Bundle A
  |         | --- Bundle B
  | --- MySubFeature2
  |         | --- Bundle C
  |         | --- Bundle D

When uninstalling the feature "MyFeature" the result is this:

[uninstalled]     MyFeature
[ installed ]     MySubFeature1
[ installed ]     MySubFeature2

This is imho not the correct behaviour.
[ Show » ]
Lars Heinemann added a comment - 11/Feb/09 02:16 AM - edited Uninstalling a feature which contains other features which contain bundles will end up in having the most top feature in state uninstalled but the sub-features and components are no touched. For example:

Feature MyFeature
  | --- MySubFeature1
  |         | --- Bundle A
  |         | --- Bundle B
  | --- MySubFeature2
  |         | --- Bundle C
  |         | --- Bundle D

When uninstalling the feature "MyFeature" the result is this:

[uninstalled]     MyFeature
[ installed ]     MySubFeature1
[ installed ]     MySubFeature2

This is imho not the correct behaviour.

[ Permlink | Edit | Delete | « Hide ]
Guillaume Nodet added a comment - 11/Feb/09 09:26 AM
The "features/uninstall xxx" should automatically select the version of the installed features, else throw an error.
[ Show » ]
Guillaume Nodet added a comment - 11/Feb/09 09:26 AM The "features/uninstall xxx" should automatically select the version of the installed features, else throw an error.

[ Permlink | Edit | Delete | « Hide ]
Guillaume Nodet added a comment - 11/Feb/09 10:59 AM
For the uninstall stuff, I'm not sure. Currently we do not keep track of features installed as dependencies. i guess we'd have to.
If a feature is installed as a dependency, it should be removed if no longer used because the feature having a dependency on it has been uninstalled.
[ Show » ]
Guillaume Nodet added a comment - 11/Feb/09 10:59 AM For the uninstall stuff, I'm not sure. Currently we do not keep track of features installed as dependencies. i guess we'd have to. If a feature is installed as a dependency, it should be removed if no longer used because the feature having a dependency on it has been uninstalled.

[ Permlink | Edit | Delete | « Hide ]
Guillaume Nodet added a comment - 11/Feb/09 11:34 AM
Raised a different issue for automaticaly selecting the right version when uninstalling.
[ Show » ]
Guillaume Nodet added a comment - 11/Feb/09 11:34 AM Raised a different issue for automaticaly selecting the right version when uninstalling.

[ Permlink | Delete | « Hide ]
Chris Custine added a comment - 11/Feb/09 12:51 PM
I noticed the same uninstall issue (not removing dependency features). It seems like we will have to do a considerable amount of dependency tracking to get this to work properly and there are some really difficult conflict resolution issues to consider. I think there is definitely some room to improve the features functionality but I am thinking this should probably be pushed to a later release.
[ Show » ]
Chris Custine added a comment - 11/Feb/09 12:51 PM I noticed the same uninstall issue (not removing dependency features). It seems like we will have to do a considerable amount of dependency tracking to get this to work properly and there are some really difficult conflict resolution issues to consider. I think there is definitely some room to improve the features functionality but I am thinking this should probably be pushed to a later release.

[ Permlink | Edit | Delete | « Hide ]
Guillaume Nodet added a comment - 11/Feb/09 02:13 PM
Yeah, I fully agree. Let's move that one for 1.2.0 and get 1.1.0 out asap.
[ Show » ]
Guillaume Nodet added a comment - 11/Feb/09 02:13 PM Yeah, I fully agree. Let's move that one for 1.2.0 and get 1.1.0 out asap.

[ Permlink | Delete | « Hide ]
Lars Heinemann added a comment - 11/Feb/09 09:29 PM
moved to version 1.2.0


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.