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/05/10 06:57:46 UTC

[sling-org-apache-sling-starter] branch bugfix/SLING-10362-allow-hook-execution-for-service-user created (now bb24e8c)

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

kwin pushed a change to branch bugfix/SLING-10362-allow-hook-execution-for-service-user
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-starter.git.


      at bb24e8c  SLING-10362 allow hook execution for service user

This branch includes the following new commits:

     new bb24e8c  SLING-10362 allow hook execution for service user

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-starter] 01/01: SLING-10362 allow hook execution for service user

Posted by kw...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

kwin pushed a commit to branch bugfix/SLING-10362-allow-hook-execution-for-service-user
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-starter.git

commit bb24e8c4d3dd08f4cd1c7f18d959f5eb8feaa55c
Author: Konrad Windszus <kw...@apache.org>
AuthorDate: Mon May 10 08:57:32 2021 +0200

    SLING-10362 allow hook execution for service user
    
    This enables installation of packages containing hooks via the OSGi
    Installer Factory
---
 src/main/features/base.json | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/src/main/features/base.json b/src/main/features/base.json
index 885a865..4fcb64d 100644
--- a/src/main/features/base.json
+++ b/src/main/features/base.json
@@ -269,6 +269,17 @@
             "org.apache.sling.commons.log.level":"info",
             "org.apache.sling.commons.log.file":"logs/request.log"
         },
+        "org.apache.jackrabbit.vault.packaging.impl.PackagingImpl":{
+            "authIdsForRootInstallation":[
+                "sling-package-install"
+            ],
+            "packageRoots":[
+                "/etc/packages"
+            ],
+            "authIdsForHookExecution":[
+                "sling-package-install"
+            ]
+        },
         "org.apache.sling.jcr.base.internal.LoginAdminWhitelist.fragment~sling":{
             "whitelist.bundles":[
                 "org.apache.sling.discovery.commons",
@@ -289,7 +300,7 @@
                 "org.apache.sling.i18n=[sling-readall]"
             ]
         },
-        "org.apache.sling.serviceusermapping.impl.ServiceUserMapperImpl.amended~installer-factories":{
+        "org.apache.sling.serviceusermapping.impl.ServiceUserMapperImpl.amended~installer-packages":{
             "user.mapping":[
                 "org.apache.sling.installer.factory.packages=[sling-package-install]"
             ]