Closed Bug 2071906 Opened 2 months ago Closed 2 months ago

User status remains Active after Active and Idle sessions have been signed out

Categories

(Enterprise Products :: Console, defect)

defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: mcurtean, Assigned: julienw)

References

(Regression)

Details

(Keywords: regression)

Attachments

(3 files, 1 external file)

Found in
Stage console — Events page

Affected versions
commit "61cc1d56f9a44347addf29900a375fdf892e0ec6"
version "422/merge"
source "https://github.com/mozilla/enterprise-console"
build "https://github.com/mozilla/enterprise-console/actions/runs/34554392439"

Preconditions
A Company admin is logged into the Console.
Multiple users (authenticated and unauthenticated) are enrolled and have signed in.
With a user account, sign in on FxE and verify that the active session on an older browser version is shown in the user profile> Devices and browsers.

Steps to reproduce

  1. From the console > user profile> device and browsers> Active or Idle session settings> scroll to the bottom and Force sign out.
  2. Verify that all sessions are signed out.

Expected result
User status should be Inactive.
See:
https://stage.fx-enterprise.nonprod.webservices.mozgcp.net/users/03fbf02f-b23c-49b9-953d-04a476b31d4e
https://stage.fx-enterprise.nonprod.webservices.mozgcp.net/users/1358aac4-ea5c-4079-8535-31b410d50e31

Actual result
User status is still Active.

Blocks: 2071915
No longer blocks: 2071915

Hey Miruna, can you please tell me if the displayed user status changes if you reload the page afterwards?

Flags: needinfo?(mcurtean)

Hi Miruna, this is an actual bug (or more a side effect) of the new permissions system in the console.

In Pull Request 418 I did a re-haul of the users API, which included a change in how the status is computed.

It now displays you as active if you have at least on console or browser session open. This means that a user might be shown as active even though they have no active browser sessions.

The fix for this requires some redesign of the user / admin management in the console. Since this is needed anyway I would ask you to keep this bug open until we provide such a redesign.

Flags: needinfo?(mcurtean)

(In reply to Julien Wajsberg [:julienw] from comment #1)

Hey Miruna, can you please tell me if the displayed user status changes if you reload the page afterwards?

No, it is persistent through reload.

Hi Miruna, this is an actual bug (or more a side effect) of the new permissions system in the console.
In Pull Request 418 I did a re-haul of the users API, which included a change in how the status is computed.
It now displays you as active if you have at least on console or browser session open. This means that a user might be shown as active even though they have no active browser sessions.
The fix for this requires some redesign of the user / admin management in the console. Since this is needed anyway I would ask you to keep this bug open until we provide such a redesign.

I had a hunch it that the console was the reason since it was the only thing FxE related that I had left open (even in a Firefox browser). Sure, I will leave it open and link it to the admin rights management ticket.

Regressed by: 2039262
Attached file GitHub Pull Request —
Assignee: nobody → felash

I just landed the patch above.

Now the user profile page shows 2 different statuses, "console user status" and "browser user status" (the latter one called "application" instead of "browser" so that it applies to thunderbird too).

Same for the statuses displayed in the user lists.

Hopefully that's better!

Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Flags: qe-verify+
QA Contact: lburuian
Attached image pasted-image.png —

Hello Julien,
We do not yet see the 2 different statuses in the console. Do you have any idea if the fix has been deployed or do we still need to wait for a new console version?
Thank you.

Flags: needinfo?(felash)

I'm quite sure it's not deployed yet indeed. I'll see if we can do a deploy soon.

Flags: needinfo?(felash)
Attached image pasted-image.png —

Hello,
We verified this on Windows 11x64,Ubunt 24 and MacOS 26.5, with Firefox Enterprise 157.0 (20260925115502).
Both statuses are now displayed in the console and the Status (application) shows as Inactive when all sessions are signed out.
Please let us know if there is anything else we need to check for this issue.
Thank you.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: