From cfe2b3520a83aa67575797cab72d2765771e6303 Mon Sep 17 00:00:00 2001 From: Konrad Windszus Date: Tue, 26 Jan 2021 12:02:27 +0100 Subject: [PATCH] Startup hook should implement SlingRepositoryInitializer to propagate exceptions properly This closes #545 partially --- .../actool/startuphook/impl/AcToolStartupHookServiceImpl.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/accesscontroltool-startuphook-bundle/src/main/java/biz/netcentric/cq/tools/actool/startuphook/impl/AcToolStartupHookServiceImpl.java b/accesscontroltool-startuphook-bundle/src/main/java/biz/netcentric/cq/tools/actool/startuphook/impl/AcToolStartupHookServiceImpl.java index 2a240d6b..0ed42a51 100644 --- a/accesscontroltool-startuphook-bundle/src/main/java/biz/netcentric/cq/tools/actool/startuphook/impl/AcToolStartupHookServiceImpl.java +++ b/accesscontroltool-startuphook-bundle/src/main/java/biz/netcentric/cq/tools/actool/startuphook/impl/AcToolStartupHookServiceImpl.java @@ -56,7 +56,6 @@ public enum StartupHookActivation { @Reference(policyOption = ReferencePolicyOption.GREEDY) private AcInstallationService acInstallationService; - private boolean isCompositeNodeStore; private Config.StartupHookActivation activationMode; @Activate @@ -115,7 +114,7 @@ private void copyAcHistoryToOrFromApps(SlingRepository repository, boolean isClo try { session = repository.loginService(null, null); - if(isCompositeNodeStore) { + if(RuntimeHelper.isCompositeNodeStore(session)) { LOG.info("Restoring history from /apps to /var"); if(session.nodeExists(HistoryUtils.AC_HISTORY_PATH_IN_APPS)) {