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

Package Installer Factory: Prevent package upload in case of uninstallation/2nd installation

    XMLWordPrintableJSON

    Details

      Description

      Currently in case a package is supposed to be uninstalled through the package installer, the package is first being uploaded to the PackageManager (https://github.com/apache/sling/blob/trunk/installer/factories/packages/src/main/java/org/apache/sling/installer/factory/packages/impl/PackageTransformer.java#L138). That should not be necessary though. Instead the package id/version should be extracted from the underlying resource and then should be uninstalled.
      Also in case the package is already installed in the same version upload should be prevented.

      This applies to both regular and hollow package installation.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                kwin Konrad Windszus
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: