Skip to content

Commit 097cb3e

Browse files
authored
Merge pull request #450 from Netcentric/bugfix/449-prevent-binding-of-webconsole-security-pid
Prevent setting a bundle binding for PID
2 parents f90e206 + 2b1566c commit 097cb3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

accesscontroltool-bundle/src/main/java/biz/netcentric/cq/tools/actool/ui/WebConsoleConfigTracker.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ public class WebConsoleConfigTracker implements ConfigurationListener {
3535
@Activate
3636
private void updateConfig() {
3737
try {
38-
39-
Dictionary<String, Object> webconsoleSecProviderConfig = configAdmin.getConfiguration(CONSOLE_SEC_PROVIDER_PID).getProperties();
38+
// make sure that you don't overwrite the binding!
39+
Dictionary<String, Object> webconsoleSecProviderConfig = configAdmin.getConfiguration(CONSOLE_SEC_PROVIDER_PID, null).getProperties();
4040
if(webconsoleSecProviderConfig != null) {
4141
allowedUsers = PropertiesUtil.toStringArray(webconsoleSecProviderConfig.get(CONSOLE_SEC_PROVIDER_USERS_PROP));
4242
allowedGroups = PropertiesUtil.toStringArray(webconsoleSecProviderConfig.get(CONSOLE_SEC_PROVIDER_GROUPS_PROP));

0 commit comments

Comments
 (0)