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

Add check for presence of security token in AdminLocaleListener #531

Conversation

bureaublauwgeel
Copy link

Whoops, this is a fix for my previous pull request: #499

I will now yell at myself for breaking it :(

Apparently the previous check for subrequests protected against executing the code in AdminLocaleListener in case an exception needs to be handled, most notably a 404. Removing this check results in 404s no longer being handled correctly, as can be seen on your own demosite: http://demo.bundles.kunstmaan.be/en/doesnotexist

I've added an explicit check for the security context to handle this situation. Apologies for breaking this in the first place.

This should fix situations where there is not security context, such as during 404 exceptions.
@roderik roderik added this to the 3.2.1 milestone Jul 8, 2015
roderik pushed a commit that referenced this pull request Jul 8, 2015
…r-security-context

Add check for presence of security token in AdminLocaleListener
@roderik roderik merged commit 436aa5d into Kunstmaan:master Jul 8, 2015
@bureaublauwgeel bureaublauwgeel deleted the fix-admin-locale-listener-security-context branch July 8, 2015 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants