Cannot delete code component from Manage Library: 403 error on delete

Created on 4 September 2025, 2 months ago

Overview

When attempting to delete a code component from the Manage Library interface, the operation fails with a 403 forbidden error. Rename and edit operations are working, but delete does not succeed. This prevents users from removing unused or obsolete code components via the UI.

Steps to reproduce:

  1. Open the Manage Library interface in the sidebar.
  2. Locate a code component you want to remove.
  3. Click on the three dots (context menu) for that code component.
  4. Try the following actions:
    • Rename the component (should work)
    • Edit the component (should work)
    • Delete the component (this will fail)
  5. Observe the result after attempting to delete.

Additional info:

  • This issue does not affect rename or edit actions, only delete.
  • Check if relevant permissions are set.
  • Should be preventing this delete:

    \Drupal\canvas\EntityHandlers\CanvasConfigEntityAccessControlHandler::checkAccess

Proposed resolution

User interface changes

🐛 Bug report
Status

Active

Version

1.0

Component

… to be triaged

Created by

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

Comments & Activities

Production build 0.71.5 2024