Access Check Errors During Cron Run [D10]

Created on 17 November 2023, over 1 year ago

Problem/Motivation

API Response Field cron job is consistently throwing errors and not completing API Response job due to a missing access check after the Drupal 10 migration.

`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 /code/web/core/lib/Drupal/Core/Entity/Query/Sql/Query.php).`

πŸ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States philip_stier Denver, Colorado

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

Comments & Activities

  • Issue created by @philip_stier
  • Status changed to Needs review over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States philip_stier Denver, Colorado

    I've added the access checks in the fork and have confirmed that these updates fix the issue – cron job is now successful again.

  • @philip_stier opened merge request.
Production build 0.71.5 2024