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
Injecting views as secured proxies cause strange side effects #270
Comments
This also applies to |
I had this issue with my views that had @PreAuthorize on them and had to change them to @secured to work as if I used PreAuthorize I get a class cast exception in PreInvocationAuthorizationAdviceVoter:
I changed it back to Secured and it seems to work fine even though it is proxied |
The problem is that the proxied views work sometimes and sometimes not. If you refresh a page with a proxied view in it, you will sometimes get an error complaining that the proxy class is not in the widgetset. This kind of behavior cannot be accepted in a real application. |
Looks like CGLIB proxies work. |
Yeah, mine are CGLIB as I extends a base view class. Don't seem to have any On Fri, Feb 19, 2016 at 12:10 AM Petter Holmström notifications@github.com
|
When adding
@Secured
to views, they are injected as proxies into the view provider. This causes strange side effects in the UI.The text was updated successfully, but these errors were encountered: