Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.1.44
-
None
-
None
Description
With JCRVLT-113 a check was implemented so that sub packages are only installed, in case a newer version of the same package (same package id) is not already installed on the system. Unfortunately in case this happens, the log is only emitted in DEBUG level (so usually not noticeable). This should at least be logged with a WARN (https://github.com/apache/jackrabbit-filevault/blame/58f86f51618c86488234580dfd11e0154fdb471a/vault-core/src/main/java/org/apache/jackrabbit/vault/packaging/impl/JcrPackageImpl.java#L480).
Also in some cases you are definitely interested in performing a downgrade. Just think a about an aggregate package which contains not 3rd party subpackages but packages which are part of your own code base. In that case you are actually interested in the downgrade, because you deliberately installed the older aggregate package (which works fine). So this should definitely be parameterizable via the https://github.com/apache/jackrabbit-filevault/blob/0dcf09d58fa40cbe3bc24dcb6a00281123bd5a1c/vault-core/src/main/java/org/apache/jackrabbit/vault/packaging/SubPackageHandling.java. I am thinking about new options INSTALL_ALWAYS and EXTRACT_ALWAYS which will always install the affected subpackages no matter which version has been installed previously.
Attachments
Issue Links
- is related to
-
JCRVLT-316 Add dedicated parameter to specify subPackageHandling
- Closed
- relates to
-
JCRVLT-113 Skip installation of sub packages if newer version is already present and installed
- Closed