SEC-1911: <security:debug/> enables SecurityDebugBeanFactoryPostProcessor which ignores <context:annotation-config/> #2139

spring-issuemaster opened this Issue Feb 7, 2012 · 3 comments


None yet
2 participants

kevin s (Migrated from SEC-1911) said:

<bean id="customBasedAuthenticationProvider" class="com.test.admin.auth.CustomBasedAuthenticationProvider">
    <property name="configBean" ref="annotationBean" />


    <security:authentication-provider ref="customBasedAuthenticationProvider">


public class AnnotationConfigBean implements InitializingBean {
public AutowiredBean bean;

/* (non-Javadoc)
 * @see org.springframework.beans.factory.InitializingBean#afterPropertiesSet()
public void afterPropertiesSet() throws Exception {
        throw new RuntimeException("noconfigbean");




public class AutowiredBean {


when injecting annotationBean into customBasedAuthenticationProvider the @Autowired AutowiredBean is not set on the annotationBean. This occurs only when security:debug/ is enabled.

Rob Winch said:

I believe this is a duplicate of SEC-1885. Can you please try the latest snapshot and let me know if this is resolved for you.

Rob Winch said:

Resolving as duplicate due to no feedback otherwise

This issue duplicates #2113

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment