You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ss...@apache.org on 2018/08/30 06:57:53 UTC

[sling-org-apache-sling-caconfig-impl] branch master updated: SLING-7868 Context-Aware Configuration Impl: Preserve sling:resourceType when persisting configurations by default

This is an automated email from the ASF dual-hosted git repository.

sseifert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-caconfig-impl.git


The following commit(s) were added to refs/heads/master by this push:
     new bb8f147  SLING-7868 Context-Aware Configuration Impl: Preserve sling:resourceType when persisting configurations by default
bb8f147 is described below

commit bb8f147bd931134a1137bd039f1f32f48eebabe2
Author: sseifert <ss...@pro-vision.de>
AuthorDate: Thu Aug 30 08:57:44 2018 +0200

    SLING-7868 Context-Aware Configuration Impl: Preserve sling:resourceType when persisting configurations by default
---
 .../management/impl/ConfigurationManagementSettingsImpl.java         | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/sling/caconfig/management/impl/ConfigurationManagementSettingsImpl.java b/src/main/java/org/apache/sling/caconfig/management/impl/ConfigurationManagementSettingsImpl.java
index 94a99e0..dd3d45e 100644
--- a/src/main/java/org/apache/sling/caconfig/management/impl/ConfigurationManagementSettingsImpl.java
+++ b/src/main/java/org/apache/sling/caconfig/management/impl/ConfigurationManagementSettingsImpl.java
@@ -18,6 +18,8 @@
  */
 package org.apache.sling.caconfig.management.impl;
 
+import static org.apache.sling.api.resource.ResourceResolver.PROPERTY_RESOURCE_TYPE;
+
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.Collection;
@@ -48,7 +50,8 @@ public class ConfigurationManagementSettingsImpl implements ConfigurationManagem
         @AttributeDefinition(name="Ignore Property Regex",
                       description = "List of regular expressions with property names that should be ignored when reading or writing configuration data properties.")
         String[] ignorePropertyNameRegex() default {
-            "^jcr:.+$"
+            "^jcr:.+$",
+            PROPERTY_RESOURCE_TYPE
         };
 
         @AttributeDefinition(name="Config collection parent properties resource names",