When EB module is uninstalled, it removes the authenticated role.

Created on 3 July 2023, almost 2 years ago

Problem/Motivation

I just wanted to make sure as I've had this problem twice.
I wasn't sure if it was happening because of Media Entity Browser module or Entity Browser module.
And I tested it step by step in two separate test systems. Unfortunately, it was a fact that the cause was the EB module.

Somehow, when you stop using this module and uninstall it, the authenticated role is also deleted. Naturally, the basic member settings of your entire site are gone and your entire site configuration is messed up. Your site turns into a complete garbage.
And you may even have to do everything from scratch:(

πŸ› Bug report
Status

Active

Version

2.9

Component

Core API

Created by

πŸ‡¬πŸ‡§United Kingdom jaydenpearly

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

Comments & Activities

  • Issue created by @jaydenpearly
  • πŸ‡¦πŸ‡ΊAustralia pameeela

    I've just hit this issue on a site. We uninstalled EB and switched to media library. Any role that contained EB permissions was deleted and recreated on config import, which meant that any users who had the role lost it.

    I haven't investigated yet but sounds similar to πŸ› Roles can be deleted when upgrading from 9.5 to 10 if a module had removed permissions Active ? Although in this case it wasn't removing non-existent permissions. The previously granted permissions are valid, they just are for a module that is uninstalled.

  • πŸ‡¦πŸ‡ΊAustralia pameeela

    On trying to reproduce from scratch, I did get a warning that the role would be deleted:

    So maybe I ignored the warning on the first pass.

  • πŸ‡ΊπŸ‡ΈUnited States Chris Matthews

    Also running into this issue and wondering if anyone has found a workaround. Thanks.

  • πŸ‡¦πŸ‡ΊAustralia pameeela

    @chris matthews the workaround would be to remove the permission(s) from the role before you uninstall the module.

  • πŸ‡¦πŸ‡ΊAustralia pameeela

    Just tried to reproduce this on 11.x but I can't. On uninstall it updates the role config rather than deleting it.

    Steps:

    1. Install EB
    2. Create a new EB
    3. Grant permission to authenticated role to use new EB
    4. Uninstall module
    5. See warning that role config will be updated
Production build 0.71.5 2024