Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-16766

Installing feature causes "Resolved" bundles to activate unexpectedly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Major Major
    • fuse-7.9-GA
    • fuse-7.8-GA
    • Fuse Standalone, Karaf
    • None
    • False
    • False
    • % %
    • Todo
    • Undefined

      Installing a feature with bundles in a "Resolved" state causes the Resolved bundles to unexpectedly start, even if they are marked as 'start="false"'. This behavior is different from Fuse 6.3, and occurs in all versions of Fuse 7.x (tested in Fuse 7.0 and Fuse 7.8). In Fuse 6.3, bundles are in an "Installed" state and do not start after installing the second feature.

      features.xml

      <features name="myfeatures"  xmlns="http://karaf.apache.org/xmlns/features/v1.3.0">
          <feature name="camel-helloworld" version="1.0.0">
          <bundle start="false">mvn:com.redhat.support.examples/camel-helloworld/1.0.0</bundle>
        </feature>
      </features>
      

      features2.xml

      <features name="featuresFeature"  xmlns="http://karaf.apache.org/xmlns/features/v1.3.0">
          <feature name="featuresFeature" version="1.0.0">
          </feature>
      </features>
      

      Reproduce Steps

      karaf@root()> features:addurl file:///opt/redhat/features.xml
      Adding feature url file:///opt/redhat/features.xml
      
      karaf@root()> features:addurl file:///opt/redhat/features2.xml
      Adding feature url file:///opt/redhat/features2.xml
      
      karaf@root()> features:install camel-helloworld
      karaf@root()> la -l | grep camel-helloworld
      243 │ Resolved │  80 │ 1.0.0                           │ mvn:com.redhat.support.examples/camel-helloworld/1.0.0
      
      karaf@root()> features:install featuresFeature
      karaf@root()> la -l | grep camel-helloworld
      243 │ Active   │  80 │ 1.0.0    
      

              ggrzybek Grzegorz Grzybek
              rhn-support-shiggs Stephen Higgs
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: