[
https://issues.apache.org/jira/browse/SLING-6989?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Konrad Windszus updated SLING-6989:
-----------------------------------
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.
was:
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.
> Package Installer Factory: Prevent package upload in case of
> uninstallation/2nd installation
> --------------------------------------------------------------------------------------------
>
> Key: SLING-6989
> URL: https://issues.apache.org/jira/browse/SLING-6989
> Project: Sling
> Issue Type: Improvement
> Components: Installer
> Reporter: Konrad Windszus
> Priority: Major
> Fix For: Installer Packages Factory 1.0.0
>
>
> 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.
--
This message was sent by Atlassian Jira
(v8.3.2#803003)