Problem/Motivation

Past the paragraph depth limit, the publishing check reports "Components nested more than 10 levels deep were not checked." for any reference on the deepest component that is not empty, including a reference to a node or a taxonomy term. Those are not components, so nothing was left unchecked. With fail_closed on, the save is refused.

Steps to reproduce

  1. Build a paragraph tree 10 levels deep on a page with a checked text field.
  2. Give the level 10 paragraph a field of type entity_reference_revisions that points at a node.
  3. Turn on fail_closed and publish the page.
  4. The save is refused with the depth limit message.

Proposed resolution

Report the depth limit only when a reference past it points at a component, with the same component test the check and the content scan already use to decide what to follow.

Remaining tasks

Review.

User interface changes

None.

API changes

None.

Data model changes

None.

Issue fork vale-3638315

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

deciphered created an issue. See original summary.

  • deciphered committed 9fd3c388 on 1.0.x
    fix(#3638315): report the depth limit only for component references
    
deciphered’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • deciphered committed 9fd3c388 on 1.1.x
    fix(#3638315): report the depth limit only for component references