You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The OOTB Navigation component in XM-Cloud uses a custom Content Resolver to adjust the returned JSON and make the route.placeholders.placeholder[0].fields property into an Array. This SDK is configured to only handle the field property as an Object.
Navigation Item RCR Field contents:
Target RCR type:
This causes the Sitecore.AspNetCore.SDK.LayoutService.Client.Serialization.Converter.FieldParser to throw a JsonException as its expecting and object and not an array:
Reproduction Steps
Create a site in XM Cloud
Point your ASP.NET Core Head application to the site
Drag the Navigation component to the page
Actual Behavior
Fatal exception, the page can no longer be rendered so its not even possible to remove the component via Pages. You need to remove is by editing the Layout Data via the Content Editor.
I have commented on #12 and I believe these 2 issues are indeed very similar and require a strategic architectural decision on the support of Custom Content Resolvers.
What happened?
The OOTB
Navigation
component in XM-Cloud uses a custom Content Resolver to adjust the returned JSON and make theroute.placeholders.placeholder[0].fields
property into an Array. This SDK is configured to only handle thefield
property as an Object.Navigation Item RCR Field contents:
Target RCR type:
This causes the
Sitecore.AspNetCore.SDK.LayoutService.Client.Serialization.Converter.FieldParser
to throw aJsonException
as its expecting and object and not an array:Reproduction Steps
Actual Behavior
Expected Behavior
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: