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

Prevent login redirect with ?timeout during logout #6065

Merged
merged 1 commit into from
Aug 21, 2019
Merged

Prevent login redirect with ?timeout during logout #6065

merged 1 commit into from
Aug 21, 2019

Conversation

himdel
Copy link
Contributor

@himdel himdel commented Aug 20, 2019

When logging out via the Logout button,
when there are multiple HTTP requests happening,
the logout can cause API requests to fail with a 401 before the browser redirects to the login screen,
causing the response handler to call redirectLogin, to redirec to the login screen with a "session timed out" message.

We should not be claiming a timeout during logout, adding a check for that.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1741283

When logging out via the Logout button,
when there are multiple HTTP requests happening,
the logout can cause API requests to fail with a 401 before the browser redirects to the login screen,
causing the response handler to call redirectLogin, to redirec to the login screen with a "session timed out" message.

We should not be claiming a timeout *during* logout, adding a check for that.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1741283
@miq-bot
Copy link
Member

miq-bot commented Aug 20, 2019

Checked commit https://github.com/himdel/manageiq-ui-classic/commit/32b4b1593752025d563d425617c16fb60865c813 with ruby 2.4.6, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0
1 file checked, 0 offenses detected
Everything looks fine. 👍

@mzazrivec mzazrivec self-assigned this Aug 21, 2019
@mzazrivec mzazrivec added this to the Sprint 119 Ending Sep 2, 2019 milestone Aug 21, 2019
@mzazrivec mzazrivec merged commit 86fafd1 into ManageIQ:master Aug 21, 2019
@himdel himdel deleted the bz1741283-logout branch August 21, 2019 11:39
simaishi pushed a commit that referenced this pull request Aug 21, 2019
Prevent login redirect with ?timeout during logout

(cherry picked from commit 86fafd1)

https://bugzilla.redhat.com/show_bug.cgi?id=1741283
@simaishi
Copy link
Contributor

Ivanchuk backport details:

$ git log -1
commit 8b17db500718e2c81ce760c5567b6e3e709ace77
Author: Milan Zázrivec <[email protected]>
Date:   Wed Aug 21 12:08:01 2019 +0200

    Merge pull request #6065 from himdel/bz1741283-logout
    
    Prevent login redirect with ?timeout during logout
    
    (cherry picked from commit 86fafd124d25addda12d715b5d7d8ec9f53614e5)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1741283

@himdel
Copy link
Contributor Author

himdel commented Oct 22, 2019

This is missing a similar fix for group change - #6325

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.

4 participants