You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Tobias Bocanegra (JIRA)" <ji...@apache.org> on 2016/12/08 08:54:58 UTC

[jira] [Created] (OAK-5249) DefaultAuthorizableActionProvider should use @Modified to react to config changes

Tobias Bocanegra created OAK-5249:
-------------------------------------

             Summary: DefaultAuthorizableActionProvider should use @Modified to react to config changes
                 Key: OAK-5249
                 URL: https://issues.apache.org/jira/browse/OAK-5249
             Project: Jackrabbit Oak
          Issue Type: Improvement
          Components: security
    Affects Versions: 1.5.14
            Reporter: Tobias Bocanegra


The DefaultAuthorizableActionProvider [0] doesn't handle the @Modified component description, causing entire OAK to restart when the config changes. 

suggested change:
{code}
	@Activate
	private void activate(Map<String, Object> properties) {
		this.modified(properties);
	}	

	@Modified
	private void modified(Map<String, Object> properties) {
		config = ConfigurationParameters.of(properties);
		enabledActions = config.getConfigValue(ENABLED_ACTIONS, DEFAULT_ACTIONS);
	}		
{code}

[0] https://github.com/apache/jackrabbit-oak/blob/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/security/user/action/DefaultAuthorizableActionProvider.java



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)