Faulty configuration results in WSOD saving permissions

Created on 31 July 2024, 6 months ago

Problem/Motivation

In some cases unsintalling a module may leave "ghost" permissions in the database. If such permissions exist editing permissions will result in WSOD from RuntimeException: Adding non-existent permissions to a role is not allowed.

The error may also result from a mistake in deployment/update.

More discussion about the issue and the proposed change was done at 💬 RuntimeException: Adding non-existent permissions to a role is not allowed Active that was filed as a bug against the migrtation system.

Steps to reproduce

Todo

Proposed resolution

Add a check to automatically remove permissions from removed modules.

There is an upcoming feature for Drush to fix these issues, but as the automatic cleanup is a very light feature for the core it should be implemented to improve UX.

Remaining tasks

Todo

User interface changes

Possible log text.

🐛 Bug report
Status

Active

Version

11.0 🔥

Component
User module 

Last updated 4 days ago

Created by

🇫🇮Finland simohell

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024