Incompatibility with multilingual sites?

Created on 24 May 2023, over 1 year ago
Updated 16 March 2024, 10 months ago

On a certain project I've noticed there's a problem when translating an already published node to a new language because of the view_unpublished module. Since there is no node grant entry in the node_access table, it fails. The check for this grant happens via \Drupal\Core\Path\Plugin\Validation\Constraint\ValidPathConstraintValidator::validate which ends up in \Drupal\node\NodeAccessControlHandler::checkAccess which then gives back neutral since there is no node grant giving access.

Uninstalling view_unpublished fixes the issue.

Issue 🐛 hook_node_grants implementations lead to a 'URL Alias' validation error when saving translated nodes. Fixed is the core issue and the patch from comment 64 fixes it on other projects.

🐛 Bug report
Status

Fixed

Version

1.1

Component

Code

Created by

🇧🇪Belgium daften

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

Comments & Activities

Production build 0.71.5 2024