
Originally Posted by
Ben Alex
As Luke noted, someNullFilter is not the recommended pattern and instead I'd encourage use of AnonymousProcessingFilter.
Here is my configuration:
Code:
<bean id="filterChainProxy" class="org.acegisecurity.util.FilterChainProxy">
<property name="filterInvocationDefinitionSource">
<value>
CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
PATTERN_TYPE_APACHE_ANT
/images/**=nullFilter
/*.css=nullFilter
/**=httpSessionContextIntegrationFilter,authenticationProcessingFilter,securityContextHolderAwareRequestFilter,exceptionTranslationFilter,filterInvocationInterceptor
</value>
</property>
</bean>
The nullFilter entries really functions as an 'exclusion' mechanism, for efficiency reasons, and the url's covered by the nullFilter are not listed in the configuration of the filterInvocationInterceptor (a FilterSecurityInterceptor)
What is the reason I should replace the nullFilter with the an anonymousProcessingFilter in this configuration? Are there any best practices not followed or any situation it is not safe with the nullFilter?