Details
-
Bug
-
Resolution: Fixed
-
Critical
-
2.0
-
None
-
None
-
-
Empty show more show less
-
Saigon 120, Saigon 121
-
5
Description
The system must have safeguards against this problem "Cause infinite loop if we had A ref to B, then B ref to A.". The original node should never be "resolved" again.
Or, it would need to be that ANY parent in a resolution "tree" should never be resolved again.
To reproduce:
1. Change a story to reference another story in such a way as to cause a circular reference, for example configure "flavors of asia" to point to itself.
2.Configure delivery endpoint as follows:
stories:
depth: 0
includeSystemProperties: true
bypassWorkspaceAcls: true
rootPath: /stories-demo
nodeTypes:
0: mgnl:composition
limit: 1
references:
tours:
propertyName: stories
referenceResolver:
implementationClass: info.magnolia.rest.reference.jcr.UuidReferenceResolver
targetWorkspace: stories
3. Request endpoint.
Result: Stack overflow.
Checklists
Acceptance criteria
Attachments
Issue Links
- duplicates
-
MGNLREST-139 Circular references cause stack overflow
-
- Closed
-
- mentioned in
-
Page Loading...