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

Already on GitHub? Sign in to your account

SEC-959: Switch User error handling #1213

spring-issuemaster opened this Issue Aug 20, 2008 · 2 comments


None yet
1 participant

Neil Anderson(Migrated from SEC-959) said:

I have been using the switch user processing filter and there are a number of features that could be added that I think may be useful. I would appreciate it if you would consider these for the future.

Firstly the user details checker is hard coded to be a AccountStatusUserDetailsChecker. It would be useful to allow control of this so that a custom UserDetailsChecker can be used (even a setter method so that the default can be overwritten in the XML config).

Secondly there is not any way to handle or respond to any exceptions that are thrown such as the UsernameNotFoundException. The issue may cross reference issue SEC-778 where the exception mapping is going to be addressed.

Thirdly there is not a way to tell the user what went wrong via an exception message. Would it be possible to add the exception to the session like the abstract processing filter does for the logon.

Luke Taylor said:

I’ve modified SwitchUserProcessingFilter to make use of the strategies introduced in SEC-745, so it should be possible to inject any customized navigation behaviour into it for both success and failure conditions.

@spring-issuemaster spring-issuemaster added this to the 3.0.0 M1 milestone Feb 5, 2016

This issue is related to #1005

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