You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by kw...@apache.org on 2021/06/04 15:11:49 UTC
[sling-org-apache-sling-distribution-journal] branch
feature/strict-package-installation created (now a01317a)
This is an automated email from the ASF dual-hosted git repository.
kwin pushed a change to branch feature/strict-package-installation
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-distribution-journal.git.
at a01317a SLING-10206 enforce strict installation of content packages
This branch includes the following new commits:
new a01317a SLING-10206 enforce strict installation of content packages
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[sling-org-apache-sling-distribution-journal] 01/01: SLING-10206
enforce strict installation of content packages
Posted by kw...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
kwin pushed a commit to branch feature/strict-package-installation
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-distribution-journal.git
commit a01317aa3b1f731263deb9b035f56558e7896a15
Author: Konrad Windszus <kw...@apache.org>
AuthorDate: Fri Jun 4 17:11:29 2021 +0200
SLING-10206 enforce strict installation of content packages
---
.../sling/distribution/journal/bookkeeper/ContentPackageExtractor.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/main/java/org/apache/sling/distribution/journal/bookkeeper/ContentPackageExtractor.java b/src/main/java/org/apache/sling/distribution/journal/bookkeeper/ContentPackageExtractor.java
index 603a329..860fb19 100644
--- a/src/main/java/org/apache/sling/distribution/journal/bookkeeper/ContentPackageExtractor.java
+++ b/src/main/java/org/apache/sling/distribution/journal/bookkeeper/ContentPackageExtractor.java
@@ -97,6 +97,7 @@ class ContentPackageExtractor {
private void installPackage(JcrPackage pack) throws RepositoryException, PackageException, IOException {
ImportOptions opts = new ImportOptions();
+ opts.setStrict(true);
if (packageHandling == PackageHandling.Extract) {
pack.extract(opts);
} else {