Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INT-3539: Fix ChannelSecurityInterceptorBPP #1303

Merged
merged 1 commit into from Oct 29, 2014

Conversation

artembilan
Copy link
Member

JIRA: https://jira.spring.io/browse/INT-3539

Previously the ChannelSecurityInterceptorBeanPostProcessor eagerly loaded all beans from its afterPropertiesSet
to retrieve the ChannelSecurityInterceptors. According to the BeanPostProcessor nature the afterPropertiesSet hook isn't legitimate.
It may cause some bad side-effects for other beans, which might not been initialized yet.

Rework ChannelSecurityInterceptorBeanPostProcessor to accept Collection<ChannelSecurityInterceptor> in the ctor.
Rework SecurityIntegrationConfigurationInitializer to iterate over BeanDefinitions to determine those of them, which
are ChannelSecurityInterceptor or ChannelSecurityInterceptorFactoryBean.

Cherry-pick to 4.0.x

JIRA: https://jira.spring.io/browse/INT-3539

Previously the `ChannelSecurityInterceptorBeanPostProcessor` eagerly loaded all beans from its `afterPropertiesSet`
to retrieve the `ChannelSecurityInterceptor`s. According to the `BeanPostProcessor` nature the `afterPropertiesSet` hook isn't legitimate.
It may cause some bad side-effects for other beans, which might not been initialized yet.

Rework `ChannelSecurityInterceptorBeanPostProcessor` to accept `Collection<ChannelSecurityInterceptor>` in the ctor.
Rework `SecurityIntegrationConfigurationInitializer` to iterate over `BeanDefinition`s to determine those of them, which
are `ChannelSecurityInterceptor` or `ChannelSecurityInterceptorFactoryBean`.

**Cherry-pick to 4.0.x**
@garyrussell garyrussell merged commit 542fc4f into spring-projects:master Oct 29, 2014
@artembilan artembilan deleted the INT-3539 branch May 8, 2015 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants