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

[PR #4383/ceba5a3f backport][stable-4.8] logout: reload user info after logout, instead of assuming null #4386

Conversation

patchback[bot]
Copy link

@patchback patchback bot commented Oct 10, 2023

This is a backport of PR #4383 as merged into master (ceba5a3).

Issue: AAH-2726

The UI doesn't really know about the community mode anonymous user, except from the API which pretends it's just another user.

But logout would still set UI user to null, going through the codepath that redirects to /login, which would go to github and log in again instead.
Reloading the user info instead of using null, in community mode, the user gets set to the anonymous user, with no redirects.

because the UI doesn't really know about the anonymous user, except from the API

so.. logout would set user to null, going through the codepath that redirects to /login, which would go to github and log in again
instead, reloading the info when in anonymous mode, the user gets set to the anonymous user, with no redirects

Issue: AAH-2726
(cherry picked from commit ceba5a3)
@app-sre-bot
Copy link

Can one of the admins verify this patch?

@himdel himdel merged commit e84633b into stable-4.8 Oct 10, 2023
@himdel himdel deleted the patchback/backports/stable-4.8/ceba5a3f5c9e20c5989cb7898572e028ba8f0f74/pr-4383 branch October 10, 2023 15:55
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

Successfully merging this pull request may close these issues.

2 participants