[MGNLREST-139] Circular references cause stack overflow Created: 31/Oct/17 Updated: 10/Nov/17 Resolved: 31/Oct/17 |
|
| Status: | Closed |
| Project: | Magnolia REST Framework |
| Component/s: | None |
| Affects Version/s: | 2.0 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Critical |
| Reporter: | Christopher Zimmermann | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Template: |
|
||||||||
| Acceptance criteria: |
Empty
|
||||||||
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
||||||||
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
||||||||
| Description |
|
Reference resolver for the stories property in the stories app causes stack overflow when the endpoint is requested. 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. |
| Comments |
| Comment by Christopher Zimmermann [ 31/Oct/17 ] |