Bug 1759291 - Changing groups with a user assigned to multiple groups logs out of appliance
Summary: Changing groups with a user assigned to multiple groups logs out of appliance
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS
Version: 5.11.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: GA
: 5.12.0
Assignee: Martin Hradil
QA Contact: John Dupuy
Red Hat CloudForms Documentation
URL:
Whiteboard:
Depends On:
Blocks: 1767835
TreeView+ depends on / blocked
 
Reported: 2019-10-07 18:47 UTC by John Dupuy
Modified: 2020-10-26 16:25 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1767835 (view as bug list)
Environment:
Last Closed: 2020-10-26 16:25:47 UTC
Category: Bug
Cloudforms Team: CFME Core
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
switching groups bz (459.78 KB, image/gif)
2019-10-07 18:47 UTC, John Dupuy
no flags Details

Description John Dupuy 2019-10-07 18:47:01 UTC
Created attachment 1623309 [details]
switching groups bz

Description of problem:
Changing groups with a user assigned to multiple groups under database authentication type logs out of the appliance. See attached gif

Version-Release number of selected component (if applicable):
5.11.0.27

How reproducible:
100%

Steps to Reproduce:
1. Create a user that belongs to multiple groups
2. Login with that user
3. Change groups

Actual results:
[----] E, [2019-10-07T14:38:47.980382 #8181:2af3a9b8a688] ERROR -- : MIQ(dashboard_controller-login): Session was timed out due to inactivity. Please log in again.


Expected results:
User should be able to change between groups without having to login again. This is the case in 5.10

Additional info:
Marking as regression, appears to be a related to bug 1540733, bug 1533222, and bug 1542219

Comment 3 John Dupuy 2019-10-07 18:52:31 UTC
Note that when the user logs back in the do have the new group assigned, which serves as a workaround.

Comment 7 CFME Bot 2019-10-23 10:16:23 UTC
New commit detected on ManageIQ/manageiq-ui-classic/master:

https://github.com/ManageIQ/manageiq-ui-classic/commit/36e1bae58b1b80d82acb74b9744c459c67017f72
commit 36e1bae58b1b80d82acb74b9744c459c67017f72
Author:     Martin Hradil <mhradil>
AuthorDate: Tue Oct 22 16:29:46 2019 -0400
Commit:     Martin Hradil <mhradil>
CommitDate: Tue Oct 22 16:29:46 2019 -0400

    Prevent login redirect during change_group

    Once the group changes, ongoing requests start failing.
    Prevent the login redirect code from redirecting to login page in these cases, the requests are expected to fail, we're about to redirect to a new starting page anyway.

    Related to https://github.com/ManageIQ/manageiq-ui-classic/pull/6065
    (and https://bugzilla.redhat.com/show_bug.cgi?id=1741283)

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

 app/assets/javascripts/miq_application.js | 6 +-
 app/assets/javascripts/miq_global.js | 2 +-
 2 files changed, 6 insertions(+), 2 deletions(-)


Note You need to log in before you can comment on or make changes to this bug.