Skip to content

Subresource visited tracking is broken #1272

@teohhanhui

Description

@teohhanhui

Basically the same as #1139. Previously fixed in #1144 and #1162.

Category

  • children
  • parent

Self-referencing resources results in infinite recursion leading to OOM.

Product

  • brands
  • isRelatedTo
  • isSimilarTo

It tries to traverse deeper on the same path more than once, e.g.

[LogicException]
Route pattern "/products/{id}/is_related_to/{isRelatedTo}/is_related_to/{isRelatedTo}/brands.{_format}"
cannot reference variable name "isRelatedTo" more than once.

The expected behaviour is:

Product -[isRelatedTo]-> Product -[isRelatedTo] -> Product
                                 /  cut here  /

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions