View As: real user (xxx) is impersonated with mock user (xxx) with (xxx) being identical

Description

I can’t test if this will affect 23x once some of the other Jiras for View As get merged because currently as soon as you enter View As on 23x, you’re kicked off the page to Overview.

To see this error on trunk, you need to click on Conversations and then View As Student. In the server logs you will see something like this:

12-Feb-2024 20:57:03.968 INFO [http-nio-20313-exec-25] o.s.e.i.UsageSessionServiceAdaptor.impersonateUser Entering into RoleView mode, real user [6a55aae1-cb63-4df6-9b3a-393a5c357d23+student] is impersonated with mock user [6a55aae1-cb63-4df6-9b3a-393a5c357d23+student]

Notice that the real user and mock user have the same ID.

Attachments

1
  • 08 Apr 2024, 12:32 PM

Activity

Show:

Wasi Khan April 8, 2024 at 12:32 PM

Verified on 23 (a267afa5) - both ids are different - refer to attachment.

Andrea Schmidt March 26, 2024 at 9:47 PM

Verified on 25x: https://trunk-maria.nightly.sakaiproject.org/, build: bcad32b1

From the server logs:

26-Mar-2024 17:46:49.387 INFO [http-nio-20313-exec-33] o.s.e.i.UsageSessionServiceAdaptor.impersonateUser Entering into RoleView mode, real user [agsteacher] is impersonating mock user [1a84d07d-06e1-4cfc-9c4b-ef34c26c9111+student]

Automation for Jira March 25, 2024 at 4:47 PM

A pull request has been created, "SAK-49747 Kernel fix log message when using View Site As", you can see it at https://github.com/sakaiproject/sakai/pull/12462

Andrea Schmidt February 15, 2024 at 11:59 PM

This needs to be tested on 23x after https://sakaiproject.atlassian.net/browse/SAK-49742 is merged to 23x.

Fixed

Details

Priority

Affects versions

23 Status

QA Verification Pass

Components

Assignee

Reporter

Environment

24x: https://trunk-maria.nightly.sakaiproject.org/, build: 4a592f48
Created February 13, 2024 at 2:07 AM
Updated April 8, 2024 at 12:33 PM
Resolved March 25, 2024 at 6:18 PM

Flag notifications