[MGNLREST-288] referenceDepth: -1 not working Created: 18/Nov/20  Updated: 04/Apr/22

Status: Open
Project: Magnolia REST Framework
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: High
Reporter: Bartosz Staryga Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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
Date of First Response:

 Description   

Steps to reproduce

Go to:
https://demo.magnolia-cms.com/.magnolia/admincentral#app:resources:browser;/tours/restEndpoints/delivery/tours_v1.yaml
And add referenceDepth: -1

Expected results

As per docs:
Setting referenceDepth: -1 bypasses the depth limit and returns nodes at any reference depth.
In https://demo.magnolia-cms.com/.rest/delivery/tours/v1/ image prop should be resolved for tourTypes

Actual results

In https://demo.magnolia-cms.com/.rest/delivery/tours/v1/ image prop is not resolved

Workaround

Set referenceDepth to number e.g. 100

Development notes



 Comments   
Comment by Bartosz Staryga [ 18/Nov/20 ]

mdrapela due to bug the feature does not work, hence should be removed from docs (https://documentation.magnolia-cms.com/display/DOCS62/Delivery+endpoint+API+v2) or be noted there twit bug link?

Generated at Mon Feb 12 06:58:26 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.