Incorrect user linked on content page when switching users

Created on 14 January 2024, over 1 year ago

Problem/Motivation

On a brand new fresh install with no customisations, using Umami to demonstration, if you login as for example user 'Umami' and then
logout and log back in as 'Holly Foat', when Holly access /en/admin/content Her username on her content is not linked to her profile, Umami's username is linked to Umami's profile, also only Umami's edit operation is visible.

Clearing the cache resolves the issue. In my case I am designing a lecture on users and roles for beginners, and am explicitly writing instructions for my user to take these exact steps so as to teach how the roles affect access to content, this bug makes that close to
impossible to demonstrate, clearing the cache is beyond my students capabilities. The cache is only briefly mentioned at the end of
the course as an added bonus.

Steps to reproduce

Install Drupal 10. set admin username and password to admin.
Login as admin.
Logout.
Login as umami (username umami, password admin)
click content in the menu, see umami's username linked to umami's profile in the content list against content authored by umami.
Logout.
Login as Holly Foat (username holly foat, password admin)
click content in the menu, see umami's username still linked to umami's profile in the content list.

I took a screen recording of my following those steps, installing Drupal 10 on pantheon.io, here: Video demo, replication steps

Proposed resolution

I do not know; There is this issue discussing caching of view's operations, but that does not account for the username linking issue Views entity operations lack cacheability support, resulting in incorrect dropbuttons 🐛 Views entity operations lack cacheability support, resulting in incorrect dropbuttons Needs work

Remaining tasks

🐛 Bug report
Status

Closed: duplicate

Version

10.2

Component
Cache 

Last updated about 16 hours ago

Created by

🇦🇺Australia thursday_bw

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024