Skip to content

Commit c4819be

Browse files
committed
Fix test and message
1 parent dc38126 commit c4819be

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎accesscontroltool-bundle/src/main/java/biz/netcentric/cq/tools/actool/impl/AcInstallationServiceImpl.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ static void skipEveryoneAcesFromRemovalWhenRegexIsNotConfigured(AuthorizablesCon
747747
&& StringUtils.isEmpty(authorizableConfigBean.getUnmanagedAcePathsRegex())
748748
&& principalsToRemoveAcesFor.remove(PRINCIPAL_EVERYONE)) {
749749
installLog.addMessage(LOG,
750-
"Not removing existing ACEs for shared principal \"everyone\". To force doing that use \"unmanagedAcePathsRegex\"!");
750+
"Not removing existing ACEs for shared principal \"everyone\". To enforce this configure \"unmanagedAcePathsRegex\" for this principal in the configuration.");
751751
return;
752752
}
753753
}

‎accesscontroltool-bundle/src/test/java/biz/netcentric/cq/tools/actool/impl/AcInstallationServiceImplTest.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ void testEveryoneAcesAreNotRemovedWithoutUnmanagedPathsRegex() {
148148
assertNull(everyone.getUnmanagedAcePathsRegex());
149149
assertTrue(authorizablesConfig.managesPathForPrincipal("/content", "everyone", null));
150150
Mockito.verify(installLog).addMessage(Mockito.any(org.slf4j.Logger.class),
151-
Mockito.contains("Not removing existing ACEs for principal everyone"));
151+
Mockito.contains("Not removing existing ACEs for shared principal \"everyone\". To enforce this configure \"unmanagedAcePathsRegex\" for this principal in the configuration."));
152152

153153
everyone.setUnmanagedAcePathsRegex("^/content.*");
154154
principalsToRemoveAcesFor.add("everyone");

0 commit comments

Comments
 (0)