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

Spring Security Exception and how to handle it. #340

Open
sanoprime opened this issue Mar 30, 2017 · 2 comments
Open

Spring Security Exception and how to handle it. #340

sanoprime opened this issue Mar 30, 2017 · 2 comments

Comments

@sanoprime
Copy link

At DefaultStateMachineExecutor.java:232 you are catching Exception (AccessDeniedException), so SMListener is never notified about error (?). Is there any other way of knowing about security error?

@jvalkeal
Copy link
Contributor

Logic is that if security throws that error then transition is denied. Question is what you would like to do with that information? We can potentially add new features if use case is understood.

@sanoprime
Copy link
Author

My first thought was to rethrow it to rollback tx - but that was based on wrong understanding how States are created.

The only reason to catch and do anything is for logging (not talking about logger).

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

No branches or pull requests

2 participants