Problem/Motivation

Building route parameters of child entities with parents that are also child entities (that have grandparents) causes an infinite recursion.

Steps to reproduce

Entity1 is child entity of Entity2.
Entity2 is child entity of Entity3.
Build a route for Entity1.

Proposed resolution

Included a patch that modifies the buildParentParams() method in the ChildEntityTrait.

Remaining tasks

Review patch.

CommentFileSizeAuthor
avoid-recursion-grandparent.patch822 bytessimonbaese

Comments

simonboy created an issue. See original summary.

simonbaese’s picture

Title: Avoid recursion while building grandparent route parameters » Avoid infinite recursion while building grandparent route parameters
Issue summary: View changes
dwkitchen’s picture

Status: Active » Needs review
dwkitchen’s picture

Status: Needs review » 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.

  • dwkitchen committed 511d89ae on 2.0.x
    feat: #3241284 Avoid infinite recursion while building grandparent route...

Status: Fixed » Closed (fixed)

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