Conflicts with the view_unpublished module (causing an integrity constraint violation)

Created on 4 December 2023, 12 months ago
Updated 12 January 2024, 10 months ago

Problem/Motivation

The unpublished_node_permissions β†’ and view_unpublished β†’ modules both implement the view_unpublished_author grant in the node_access table. This causes an integrity constraint violation.

The commit and line where this is implemented: https://git.drupalcode.org/project/unpublished_node_permissions/-/commit...

Steps to reproduce

Install both modules (at least version 1.3 of unpublished_node_permissions) and try to rebuild node access.

Proposed resolution

TBD.

πŸ› Bug report
Status

Fixed

Version

1.3

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands Ewout Goosmann

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

Comments & Activities

  • Issue created by @Ewout Goosmann
  • Status changed to Postponed: needs info 12 months ago
  • πŸ‡ΊπŸ‡¦Ukraine AstonVictor

    I guess both modules do almost the same things and it's redundant to install both of them on one site.

    can you describe a case when both modules are required?

  • Hi!
    I have same problem. I've made the patch for core to fix it, but I can't figure out how to attach a file here...

  • Oh! Now it is possible. This patch helped me to avoid error during node save.

  • Status changed to Fixed 11 months ago
  • πŸ‡ΊπŸ‡¦Ukraine AstonVictor

    Hi @Cyber555,
    It's incorrect to change smth in core here.

    Added a patch with a small fix to change the name of the grant in order not to have conflicts.
    I'm not sure if we should commit it because I don't see any point in using both modules on the same site.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024