Hello!
Sorry for posting several issues lately. I am currently testing OMP 3.5 systematically, and I thought that if I can reproduce and document these problems clearly, the reports may be useful for you when there is time to address them — even in cases where I can find a workaround that allows us to keep the system usable for our editors.
Describe the issue or problem
I found two related problems when merging a user who has an ended masthead role / Editorial History entry.
The issue is reproducible both:
-
on an upgraded OMP 3.5.0-5 staging installation; and
-
on a clean local OMP 3.5.0-5 installation.
Immediately after merging the historical editor account into another user, the public Editorial History page returns HTTP 500.
The page starts working again after another masthead-related user setting is modified and saved.
After the page becomes available again, the historical editorial service of the original user is displayed under the target user’s name, i.e. the account into which the original editor was merged, provided that the transferred role is still set to “Appear on masthead” for the target user.
Disabling Appear on masthead for that role prevents the incorrect historical entry from being displayed publicly, so this can serve as a partial workaround. However, the transferred role assignment itself still remains associated with the target user. This results in historically incorrect information being displayed unless the masthead visibility is manually disabled after the merge.
Steps to reproduce
-
Create or use User A.
-
Give User A an editorial role that appears on the masthead.
-
Ensure the role has a start date.
-
End/remove the role so that User A appears on the public Editorial History page.
-
Create or use a different User B.
-
Merge User A into User B.
-
Immediately open:
/about/editorialHistory
Actual result – problem 1
The Editorial History page returns:
HTTP 500 Internal Server Error
This was reproduced on both the upgraded staging installation and a clean OMP 3.5.0-5 localhost installation.
Additional reproduction of the cache-related behaviour
While the Editorial History page is returning HTTP 500:
-
Edit a different user’s masthead settings for an editorial role that is included in Editorial Masthead / Editorial History (for example, change the “Appear on masthead” setting for a Press Editor role).
-
Save the change.
-
Reload the Editorial History page.
The Editorial History page immediately becomes accessible again.
This suggests that the user merge does not invalidate the Editorial Masthead / Editorial History cache correctly, while a normal masthead-setting update does.
Actual result – problem 2
After the Editorial History page becomes accessible again, User A’s historical editorial role is displayed under User B’s name.
For example:
Before merge:
User A – Editor – 2018–2022
After merging User A into User B:
User B – Editor – 2018–2022
If Appear on masthead is subsequently disabled for this transferred assignment on User B, the historical entry disappears from Editorial History.
Expected behaviour
The merge should also invalidate any relevant Editorial Masthead / Editorial History cache so that the page does not temporarily return HTTP 500.
This is particularly important because an administrator may need to remove a user account in response to an account-deletion or data-protection request. In the current interface, merging the user into another account is the available mechanism for removing the original account. In such a case, it is problematic if the former user’s historical editorial role is transferred to and publicly displayed under another person’s account instead of being removed or otherwise handled independently of the deleted user account.
Application
OMP 3.5.0-5
Environments tested
Environment 1
-
OMP upgraded from 3.4.0-9 to 3.5.0-5
-
Reproduced
Environment 2
-
Clean local OMP 3.5.0-5 installation
-
Reproduced
Additional information
The behaviour appears to have two separate but related components:
-
Possible cache invalidation issue:
Immediately after the merge, the Editorial History page returns HTTP 500. Performing another masthead-related update causes the page to work again immediately. -
Historical attribution issue:
The ended masthead assignment is transferred to the merge target user, preserving the historical dates but displaying them under the wrong person’s name.
If I can help with any further testing or provide additional information, please let me know.
Kind regards,
Tiffany
