You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by mp...@apache.org on 2018/06/13 16:05:48 UTC
[sling-org-apache-sling-distribution-core] branch master updated:
SLING-7714: packages created with root filter remove ACEs
This is an automated email from the ASF dual-hosted git repository.
mpetria pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-distribution-core.git
The following commit(s) were added to refs/heads/master by this push:
new 9c56ed8 SLING-7714: packages created with root filter remove ACEs
9c56ed8 is described below
commit 9c56ed87be8e97b155938858b3d089d4f8b5e43f
Author: Marius Petria <mp...@adobe.com>
AuthorDate: Wed Jun 13 19:05:09 2018 +0300
SLING-7714: packages created with root filter remove ACEs
---
.../org/apache/sling/distribution/serialization/impl/vlt/VltUtils.java | 2 +-
.../apache/sling/distribution/serialization/impl/vlt/VltUtilsTest.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main/java/org/apache/sling/distribution/serialization/impl/vlt/VltUtils.java b/src/main/java/org/apache/sling/distribution/serialization/impl/vlt/VltUtils.java
index a0be36e..e883860 100644
--- a/src/main/java/org/apache/sling/distribution/serialization/impl/vlt/VltUtils.java
+++ b/src/main/java/org/apache/sling/distribution/serialization/impl/vlt/VltUtils.java
@@ -94,7 +94,7 @@ public class VltUtils {
initFilterSet(nodeFilterSet, nodeFilters, patterns);
// Set property path filters
- PathFilterSet propertyFilterSet = new PathFilterSet("/");
+ PathFilterSet propertyFilterSet = new PathFilterSet(path);
initFilterSet(propertyFilterSet, propertyFilters, new ArrayList<String>());
filter.add(nodeFilterSet, propertyFilterSet);
diff --git a/src/test/java/org/apache/sling/distribution/serialization/impl/vlt/VltUtilsTest.java b/src/test/java/org/apache/sling/distribution/serialization/impl/vlt/VltUtilsTest.java
index e2913c8..210a80e 100644
--- a/src/test/java/org/apache/sling/distribution/serialization/impl/vlt/VltUtilsTest.java
+++ b/src/test/java/org/apache/sling/distribution/serialization/impl/vlt/VltUtilsTest.java
@@ -52,7 +52,7 @@ public class VltUtilsTest {
assertEquals(1, propFilterSet.size());
PathFilterSet propFilter = propFilterSet.get(0);
assertTrue(propFilter.getEntries().isEmpty());
- assertEquals("/", propFilter.getRoot());
+ assertEquals("/foo", propFilter.getRoot());
assertNotNull(filter.getFilterSets());
List<PathFilterSet> nodeFilterSet = filter.getFilterSets();
--
To stop receiving notification emails like this one, please contact
mpetria@apache.org.