Non-admins cannot save unpublished nodes with path alias

Created on 27 August 2020, almost 4 years ago
Updated 27 March 2024, 3 months ago

Problem/Motivation

When trying to save an unpublished node as a non-admin user, I get the error message "Either the path '/node/[nid]' is invalid or you do not have access to it.".

Steps to reproduce

  • Create a role with permissions to edit nodes.
  • As a user with that role, create a new node with a path alias
  • Edit the node again and remove the "Published" checkbox. Try to save.

Expected behaviour

The node gets saved.

Actual behaviour

Instead, I get the above error message.

As this behaviour is similar to the one reported in https://www.drupal.org/project/drupal/issues/3101344 🐛 Cannot save translated nodes after upgrading to 8.8 due to invalid path Needs review , it might have the same cause, but I'm not sure.

As a workaround, we're granting the permission "link to any page" to the affected roles, but this feels wrong.

🐛 Bug report
Status

Active

Version

11.0 🔥

Component
Path 

Last updated 6 days ago

  • Maintained by
  • 🇬🇧United Kingdom @catch
Created by

🇩🇪Germany mrshowerman Munich

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024