You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by da...@apache.org on 2019/02/01 16:57:03 UTC

[sling-org-apache-sling-feature-extension-content] 29/46: SLING-8106 - fixing lookup of registryHome for config

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

davidb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-feature-extension-content.git

commit fac21ff1f46ebfa9cc240a674b38059e7c3c64cb
Author: Dominik Suess <su...@adobe.com>
AuthorDate: Tue Nov 13 23:12:09 2018 +0100

    SLING-8106 - fixing lookup of registryHome for config
---
 .../java/org/apache/sling/feature/extension/content/ContentHandler.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/sling/feature/extension/content/ContentHandler.java b/src/main/java/org/apache/sling/feature/extension/content/ContentHandler.java
index bb45a4b..dd94747 100644
--- a/src/main/java/org/apache/sling/feature/extension/content/ContentHandler.java
+++ b/src/main/java/org/apache/sling/feature/extension/content/ContentHandler.java
@@ -125,7 +125,7 @@ public class ContentHandler implements ExtensionHandler {
             installationContext.addConfiguration(initcfg.getPid(), initcfg.getFactoryPid(), initcfg.getProperties());
          // Workaround for too bold relocation mechanism - corresponding details at https://issues.apache.org/jira/browse/MSHADE-156 
             final Configuration registrycfg = new Configuration("org.UNSHADE.apache.jackrabbit.vault.packaging.registry.impl.FSPackageRegistry");
-            registrycfg.getProperties().put("homePath", REGISTRY_FOLDER);
+            registrycfg.getProperties().put("homePath", registryHome.getPath());
             installationContext.addConfiguration(registrycfg.getPid(), registrycfg.getFactoryPid(), registrycfg.getProperties());;
 
             return true;