Issue exporting : Entity queries must explicitly set whether the query should be access checked or not

Created on 8 December 2023, about 1 year ago
Updated 13 February 2024, 10 months ago

Problem/Motivation

We have updated to Drupal 10.1.7 and trying to use the 'Export Using content types' to export content, but it throws a PHP error,

Drupal\Core\Entity\Query\QueryException: Entity queries must explicitly set whether the query should be access checked or not. See Drupal\Core\Entity\Query\QueryInterface::accessCheck(). in Drupal\Core\Entity\Query\Sql\Query->prepare() (line 141 of /var/www/opengroup.org/web/core/lib/Drupal/Core/Entity/Query/Sql/Query.php).

So the module does not work at all in 10.1.7

Steps to reproduce

Install Drupal 10.1.7, and node export. Go to 'Content -> Export Nodes -> Using Content Type', and it throws an error

Proposed resolution

It looks like it is linked to : https://www.drupal.org/project/drupal/issues/3357368. So need to call Drupal\Core\Entity\Query\QueryInterface::accessCheck()

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

1.0

Component

Node export

Created by

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024