You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Michael Van Geertruy (JIRA)" <ji...@apache.org> on 2011/07/02 01:37:28 UTC

[jira] [Commented] (KARAF-697) features:list shows the features that failed installation as installed.

    [ https://issues.apache.org/jira/browse/KARAF-697?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13058868#comment-13058868 ] 

Michael Van Geertruy commented on KARAF-697:
--------------------------------------------

This is the contents of the gimped features.xml file:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<features xmlns="http://karaf.apache.org/xmlns/features/v1.0.0" name="foo-0.0.1">
   <feature resolver="(obr)" version="0.0.1" name="foo">
        <bundle>mvn:org.springframework/spring-web/3.0.5.RELEASE</bundle>
        <bundle>mvn:org.springframework/spring-webmvc/3.0.5.RELEASE</bundle>
    </feature>
</features>

Again, it was intentionally created to test this issue.  

This creates an unresolved constraint violation which results in all of the bundles in this feature being uninstalled.

The issue is in the finally block of the FeaturesServiceImpl.jar's installFeatures() method.  The finally block sets the callListeners(new FeatureEvent(f, FeatureEvent.EventType.FeatureInstalled, false)); This results in the featurews being listed as installed on features:list for all features that are installed regardless of the success of that installation.

> features:list shows the features that failed installation as installed.
> -----------------------------------------------------------------------
>
>                 Key: KARAF-697
>                 URL: https://issues.apache.org/jira/browse/KARAF-697
>             Project: Karaf
>          Issue Type: Bug
>         Environment: Windows
>            Reporter: Michael Van Geertruy
>
> This was observed when attempting to install a feature that was intentionally broken. Upon installation of the feature, an unresolved constraint violation was generated, and osgi:list showed that none of the bundles inside of the broken feature had been installed.  However, when running a features:list command, the feature was listed as installed.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira