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

[#8190] Fix logout issues #8195

Merged
merged 2 commits into from
Apr 9, 2024
Merged

[#8190] Fix logout issues #8195

merged 2 commits into from
Apr 9, 2024

Conversation

gbp
Copy link
Member

@gbp gbp commented Apr 9, 2024

Relevant issue(s)

Fixes #8190

What does this do?

Fix logout issues

Why was this needed?

To fix unexpected behaviour and retain user browser sessions.

Implementation notes

Not 100% sure of the reason for this issue. I can only replicate this on WDTK and the Alaveteli staging environment. Running in production elsewhere works fine so I guess this could be due to how we have Apache/Varnish configured? /cc @sagepe


[skip changelog]

gbp added 2 commits April 9, 2024 07:46
Split the configuration of the i18n locale gems and storing the locale
in the user session into separate actions.

This will allow us to skip storing the session in controller actions
where this isn't desirable.
There is conflict when calling `render html: ...` which we do in
AttachmentController#show_as_html and updating the session which is
causing the session to be reset.

This change prevents the session from being updated in the before action
hook.

Fixes #8190
@gbp gbp added the on-staging label Apr 9, 2024
@gbp gbp merged commit 44a7e4e into develop Apr 9, 2024
7 checks passed
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.

Sign in / log out issues
1 participant