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

cziegeler pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-installer-factory-configuration.git


The following commit(s) were added to refs/heads/master by this push:
     new 77ff283  SLING-7496 Factory config deleted with ConfigAdmin 
immediately after creation
77ff283 is described below

commit 77ff2834d851a87eaa210e0d111523f3fa343fd4
Author: Carsten Ziegeler <czieg...@adobe.com>
AuthorDate: Mon Feb 19 17:21:53 2018 +0100

    SLING-7496 Factory config deleted with ConfigAdmin immediately after 
creation
---
 .../installer/factories/configuration/impl/AbstractConfigTask.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/src/main/java/org/apache/sling/installer/factories/configuration/impl/AbstractConfigTask.java
 
b/src/main/java/org/apache/sling/installer/factories/configuration/impl/AbstractConfigTask.java
index a1d628a..e0015fc 100644
--- 
a/src/main/java/org/apache/sling/installer/factories/configuration/impl/AbstractConfigTask.java
+++ 
b/src/main/java/org/apache/sling/installer/factories/configuration/impl/AbstractConfigTask.java
@@ -81,7 +81,7 @@ abstract class AbstractConfigTask extends InstallTask {
             return null;
         }
         final String alias;
-        if (this.aliasPid.startsWith(this.factoryPid)) {
+        if (this.aliasPid.startsWith(this.factoryPid + ".")) {
             alias = this.aliasPid;
         } else {
             alias = this.factoryPid + "." + this.aliasPid;

-- 
To stop receiving notification emails like this one, please contact
cziege...@apache.org.

Reply via email to