Remove adding of non-existent permissions to a role from Webships App Store. Which is not allowed in Drupal 10

Created on 21 January 2023, about 2 years ago
Updated 2 March 2024, 11 months ago

Problem/Motivation

Having the following

The website encountered an unexpected error. Please try again later.
RuntimeException: Adding non-existent permissions to a role is not allowed. The incorrect permissions are "administer entityqueue", "administer statistics", "manipulate all entityqueues", "manipulate entityqueues", "masquerade as authenticated", "view post access counter". in Drupal\user\Entity\Role->calculateDependencies() (line 206 of core/modules/user/src/Entity/Role.php).
Drupal\user\Entity\Role->calculateDependencies() (Line: 320)
Drupal\Core\Config\Entity\ConfigEntityBase->preSave() (Line: 179)
Drupal\user\Entity\Role->preSave() (Line: 528)
Drupal\Core\Entity\EntityStorageBase->doPreSave() (Line: 483)
Drupal\Core\Entity\EntityStorageBase->save() (Line: 253)
Drupal\Core\Config\Entity\ConfigEntityStorage->save() (Line: 339)
Drupal\Core\Entity\EntityBase->save() (Line: 608)
Drupal\Core\Config\Entity\ConfigEntityBase->save() (Line: 388)
Drupal\Core\Config\ConfigInstaller->createConfiguration() (Line: 148)
Drupal\Core\Config\ConfigInstaller->installDefaultConfig() (Line: 75)
Drupal\Core\ProxyClass\Config\ConfigInstaller->installDefaultConfig() (Line: 319)
Drupal\Core\Extension\ModuleInstaller->install() (Line: 83)
Drupal\Core\ProxyClass\Extension\ModuleInstaller->install() (Line: 1657)
install_install_profile() (Line: 698)
install_run_task() (Line: 569)
install_run_tasks() (Line: 119)
install_drupal() (Line: 48)

Proposed resolution

Remove all non-existent permissions for not enabled modules

Remaining tasks

  • ✅ File an issue
  • ➖ Addition/Change/Update/Fix
  • ➖ Merge request, Patch, or Commit
  • ➖ Testing to ensure no regression
  • ➖ Automated unit testing coverage
  • ➖ Automated functional testing coverage
  • ➖ UX/UI designer responsibilities
  • ➖ Readability
  • ➖ Accessibility
  • ➖ Performance
  • ➖ Security
  • ➖ Documentation
  • ➖ Code review by maintainers
  • ➖ Full testing and approval
  • ➖ Credit contributors
  • ➖ Review with the product owner
  • ➖ Release notes snippet
  • ❌ Release

User interface changes

  • N/A

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • N/A
📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇯🇴Jordan Rajab Natshah Jordan

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

Comments & Activities

Production build 0.71.5 2024