Config import allows invalid role import

Created on 31 October 2023, 10 months ago

Problem/Motivation

When i add a non-existent permission to a role yml, the config is imported without error. However this can lead to a broken user experience because the permission form cannot then be save.

Steps to reproduce

* Edit user.role.authenticated.yml and add a made-up permission "foobar".
* Import the role through the config import "single item" UI, copying the yaml with the foobar permission
* (Note the role imports successfully)
* Go to the permissions page, and save it.

Adding non-existent permissions to a role is not allowed. The incorrect permissions are "foobar"

Proposed resolution

I assume that the config import form should be subjected to the same validation checks. It may also be that the user permission form should simply warn off the removed permissions?

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Active

Version

10.2 ✨

Component
Configuration entityΒ  β†’

Last updated 2 days ago

Created by

πŸ‡¦πŸ‡ΊAustralia sime Canberra

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

Comments & Activities

Production build 0.71.5 2024