Bug 1759291

Summary: Changing groups with a user assigned to multiple groups logs out of appliance
Product: Red Hat CloudForms Management Engine Reporter: John Dupuy <jdupuy>
Component: UI - OPSAssignee: Martin Hradil <mhradil>
Status: CLOSED CURRENTRELEASE QA Contact: John Dupuy <jdupuy>
Severity: high Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: high    
Version: 5.11.0CC: bmidwood, dmetzger, hkataria, jdupuy, lavenel, mpovolny, obarenbo
Target Milestone: GAKeywords: Regression, TestOnly, ZStream
Target Release: 5.12.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1767835 (view as bug list) Environment:
Last Closed: 2020-10-26 16:25:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Bug
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1767835    
Attachments:
Description Flags
switching groups bz none

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(-)