Drupal 10 compatibility issue

Created on 25 July 2023, over 1 year ago
Updated 29 July 2023, over 1 year ago

Problem/Motivation

Using Drupal 10, when trying to executing a node delete operation, exception is thrown.

The website encountered an unexpected error. Please try again later.
Drupal\Core\Entity\EntityStorageException: Entity queries must explicitly set whether the query should be access checked or not. See Drupal\Core\Entity\Query\QueryInterface::accessCheck().

Steps to reproduce

I encountered this error doing a rollback of migrated nodes, but you can easily reproduce it creating a new node and then going to /node/{nid}/delete route to access the delete confirmation form. You can't delete the entity.

Proposed resolution

I found 4 entity queries missing now mandatory accessCheck(). I've created a patch fixing this.

Remaining tasks

Validate the proposed solution and release a new version, I guess.

And thank you for contributing this module.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇪🇸Spain missvengerberg

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

Comments & Activities

Production build 0.71.5 2024