[MGNLREST-626] Link to root page is not resolved Created: 02/Feb/23 Updated: 02/Feb/23 |
|
| Status: | Open |
| Project: | Magnolia REST Framework |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Mykola | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Win10 x64, DX Core 6.2.26 |
||
| 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 |
Steps to reproduce1. Try to add pageLinkField in dialog Internal: $type: pageLinkField 2. Add pages delivery rest definition with resolvers # /restEndpoints/delivery/pages_v1.yaml class: info.magnolia.rest.delivery.jcr.v2.JcrDeliveryEndpointDefinition workspace: website depth: 10 bypassWorkspaceAcls: true systemProperties: - mgnl:lastModified - mgnl:created - mgnl:template nodeTypes: - mgnl:page childNodeTypes: - mgnl:area - mgnl:component - mgnl:contentNode references: - name: InternalReference propertyName: Internal referenceResolver: class: info.magnolia.rest.reference.jcr.JcrReferenceResolverDefinition targetWorkspace: website 3. Create component, edit Internal link and choose main page. 4. Open rest endpoint in browser http://localhost:8080/.rest/delivery/pages/v1/test/ Expected resultsInternal is resolved to object like
"Internal": {...}
Actual resultsGot string with jcrId instead "Internal": "..." WorkaroundDevelopment notesOnly occurs, when main page is choosen in pageLinkField |