Problem/Motivation

Nested paragraphs are where a rendering engine goes into recursion, and where an unpublished or deleted revision produces a fatal. Both cases exist on real sites and neither is covered today.

Proposed resolution

  • Kernel coverage: two and three levels of nesting, a type with no structure, a plugin-backed type, a paragraph referencing a deleted entity, and a cycle if the model permits one.
  • Assert the depth bound is enforced and produces a bounded response rather than an exception.
  • Assert cache metadata of nested paragraphs reaches the top-level response.

Remaining tasks

Everything.

Issue fork myrest-3622285

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

sergeydruua created an issue. See original summary.

  • sergeydruua committed e66dbd72 on 1.0.x
    Issue #3622285: Cover the paragraph layer, including depth and cycles
    
sergeydruua’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.

sergeydruua’s picture

Status: Fixed » Closed (fixed)