Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-6392

OSGi Installer: Symbolic name changes on a resource keeping the same URL are not supported

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Installer Core 3.8.0
    • Installer Core 3.8.8
    • Installer
    • None

    Description

      After deploying bundle with symbolic name A to JCR location /apps/myapp/install/mybundle.jar or somewhere in the filesystem it is correctly being picked up by the JcrInstaller or FileInstaller and deployed in Apache Felix. Now the symbolic name has been changed to B and the updated JAR has been deployed to the same location in the JCR /apps/myapp/install/mybundle.jar or to the file system the updated bundle is not correctly deployed.
      The OSGI installer console exposes that both bundles A and B are in state Installed but the /system/console/bundle only shows bundle A but not B.
      It would actually be expected that A is uninstalled, while B is getting installed!

      Such a change can happen if you use the maven-bundle-plugin with a default configuration and you just change the groupId of the underlying maven project. That will not affect the finalName of the artifact (by default artifactId) but the symbolic name of the bundle (see http://felix.apache.org/documentation/subprojects/apache-felix-maven-bundle-plugin-bnd.html#default-behavior).

      Attachments

        1. SLING-6392-v02.patch
          8 kB
          Konrad Windszus
        2. SLING-6392-v01.patch
          3 kB
          Konrad Windszus
        3. SLING-6392-test-v02.patch
          6 kB
          Konrad Windszus
        4. SLING-6392-test-v01.patch
          6 kB
          Konrad Windszus
        5. SLING-6392-Fragment-v02.patch
          12 kB
          Karl Pauls
        6. SLING-6392-Fragment.patch
          5 kB
          Karl Pauls
        7. SLING-6392-after-transform.patch
          8 kB
          Karl Pauls

        Activity

          People

            karlpauls Karl Pauls
            kwin Konrad Windszus
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: