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

An installed blueprint.xml has always been updated and restarted when install another unrelated feature

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0.0
    • Fix Version/s: 4.0.4
    • Component/s: karaf
    • Labels:
      None
    • Environment:

      Java 7

      Description

      There is an installed blueprint.xml. (by install -s blueprint:mvn:org.abc/my-project/1.0-SNAPSHOT/xml, or deploy this blueprint.xml into deploy folder).

      then, if you do feature:install xxxx, to install some other feature (no dependencies to the blueprint.xml above), the installed blueprint.xml will always be updated and restarted, that's not expected behavious.

      After checking with org.apache.karaf.features.internal.service.Deployer class, I found that the old checksum will only be calculated in case of url start with "jar:" (Line 1159), so in case of the url start with "blueprint:", the new checksum will never equal with old checksum, then it will be put into deployment.toUpdate Map.

      The Deployer class should be fixed for "blueprint:" deployment.

        Attachments

          Activity

            People

            • Assignee:
              jbonofre Jean-Baptiste Onofré
              Reporter:
              xldai Xilai Dai
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: