Entity queries must explicitly set whether the query should be access checked or not. See Drupal\Core\Entity\Query\QueryInterface::accessCheck().

Created on 18 March 2023, almost 2 years ago
Updated 19 March 2023, almost 2 years ago

Problem/Motivation

in πŸ’¬ I can't get Update Status Closed: won't fix I was asking for support and went and xdebugged the code. Learned some things about how the updater works. That said, There were a couple places where an entityquery was created where accessCheck() wasn't used and it was throwing an exception, but that exception was being caught by the try catch there. this was causing the most up to date information to not be grabbed from D.O for Drupal 10. This was introduced in 9.2 and enforced with an exception in 10.0. see https://www.drupal.org/node/3201242 β†’

Steps to reproduce

Proposed resolution

Add accessCheck() to each instance of entityQuery in the codebase.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

4.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States generalredneck

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

Comments & Activities

Production build 0.71.5 2024