Join GitHub today
SEC-1467: NPE in DelegatingMethodSecurityMetadataSource when running contacts sample #1705
Cannot run contacts sample from trunk
Luke Taylor said:
Thank for spotting this. The problem only seems to occur if the app-context files are loaded in a particular order, hence the unit test wasn't catching this. I've modified it to reproduce the issue. The problem was the AOP infrastructure was attempting to advise AnnotationTransactionAttributeSource, and in the proces DelegatingMethodSecurityMetadataSource was being invoked before it had been injected with its list of delegates. I have changed the class to use constructor injection. However, I don't think AnnotationTransactionAttributeSource should really be a candidate as an AOP target so I'll ping Juergen and ask him to take a look.