Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-3642

bundles mistaken got unstalled even though it has a depending feature with it.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.4.2, 3.0.4
    • None
    • None

    Description

      for an instance, we have a simple features.xml like

      <?xml version="1.0" encoding="UTF-8"?>
      <features name="ENTESB-2911"
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://karaf.apache.org/xmlns/features/v1.0.0"
              xsi:schemaLocation="http://karaf.apache.org/xmlns/features/v1.0.0 http://karaf.apache.org/xmlns/features/v1.0.0">
      
        <feature name='featureA' version='2.15.0' resolver='(obr)' start-level='50'>
          <feature version='2.15.0'>camel-core</feature>
          <feature version='2.15.0'>featureB</feature>
        </feature>
        <feature name='featureB' version='2.15.0' resolver='(obr)' start-level='50'>
          <bundle dependency='true'>mvn:com.google.guava/guava/18.0</bundle>
          <bundle>mvn:org.apache.camel/camel-guava-eventbus/2.15.0</bundle>
        </feature>
        <feature name='featureC' version='2.15.0' resolver='(obr)' start-level='50'>
          <bundle>mvn:com.google.guava/guava/18.0</bundle>
        </feature>
      
      </features>
      
      

      If we install featureC, featureA, then we uninstall featureC, we can see bundle
      mvn:com.google.guava/guava/18.0
      get uninstalled even though it still used in featureA

      Attachments

        Activity

          People

            ffang Freeman Yue Fang
            ffang Freeman Yue Fang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: