Skip to content
Snippets Groups Projects
Commit c19a53a0 authored by catch's avatar catch
Browse files

Issue #315302 by mstrelan, tacituseu, PaulMagrath, coltrane, yched,...

Issue #315302 by mstrelan, tacituseu, PaulMagrath, coltrane, yched, DamienMcKenna, quietone: Node Access Rebuild never finishes (infinite loop)
parent 246b571c
No related branches found
No related tags found
No related merge requests found
...@@ -1185,10 +1185,11 @@ function _node_access_rebuild_batch_operation(&$context) { ...@@ -1185,10 +1185,11 @@ function _node_access_rebuild_batch_operation(&$context) {
->execute(); ->execute();
$node_storage->resetCache($nids); $node_storage->resetCache($nids);
$nodes = Node::loadMultiple($nids); $nodes = Node::loadMultiple($nids);
foreach ($nodes as $nid => $node) { foreach ($nids as $nid) {
// To preserve database integrity, only write grants if the node // To preserve database integrity, only write grants if the node
// loads successfully. // loads successfully.
if (!empty($node)) { if (!empty($nodes[$nid])) {
$node = $nodes[$nid];
/** @var \Drupal\node\NodeAccessControlHandlerInterface $access_control_handler */ /** @var \Drupal\node\NodeAccessControlHandlerInterface $access_control_handler */
$access_control_handler = \Drupal::entityTypeManager()->getAccessControlHandler('node'); $access_control_handler = \Drupal::entityTypeManager()->getAccessControlHandler('node');
$grants = $access_control_handler->acquireGrants($node); $grants = $access_control_handler->acquireGrants($node);
......
...@@ -1842,11 +1842,6 @@ parameters: ...@@ -1842,11 +1842,6 @@ parameters:
count: 1 count: 1
path: modules/node/node.module path: modules/node/node.module
-
message: "#^Variable \\$node in empty\\(\\) always exists and is not falsy\\.$#"
count: 1
path: modules/node/node.module
- -
message: "#^Method Drupal\\\\node\\\\ConfigTranslation\\\\NodeTypeMapper\\:\\:setEntity\\(\\) should return bool but return statement is missing\\.$#" message: "#^Method Drupal\\\\node\\\\ConfigTranslation\\\\NodeTypeMapper\\:\\:setEntity\\(\\) should return bool but return statement is missing\\.$#"
count: 1 count: 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment