LeBlender mapper throws InvalidCastException on content save
Umbraco: 7.8.1
Leblender: 1.0.9.2
uSync: 4.0.4
uSync.ContentEdition: 4.1.1
I've encountered a bug with the LeBlender content mapper. I encountered the following exception when saving a content node
Jumoo.uSync.Content.ContentHandler - Error saving Content: System.InvalidCastException: Cannot cast Newtonsoft.Json.Linq.JObject to Newtonsoft.Json.Linq.JToken.
at Newtonsoft.Json.Linq.Extensions.Convert[T,U](T token)
at Newtonsoft.Json.Linq.JToken.Value[T](Object key)
at Jumoo.uSync.ContentMappers.LeBlenderContentMapper.MapLeBlenderValue(Int32 dataTypeDefinitionId, String value, Boolean import)
at Jumoo.uSync.ContentMappers.LeBlenderContentMapper.GetExportValue(Int32 dataTypeDefinitionId, String value)
at Jumoo.uSync.Core.Mappers.GridMapper.ProcessControl(JObject control, Boolean import)
at Jumoo.uSync.Core.Mappers.GridMapper.ProcessGrid(String content, Boolean import)
at Jumoo.uSync.Core.Mappers.GridMapper.GetExportValue(Int32 dataTypeDefinitionId, String value)
at Jumoo.uSync.Core.Serializers.ContentBaseSerializer`1.GetExportIds(PropertyType propType, XElement value)
at Jumoo.uSync.Core.Serializers.ContentBaseSerializer`1.SerializeBase(IContentBase item, String contentTypeAlias)
at Jumoo.uSync.Core.Serializers.ContentSerializer.SerializeCore(IContent item)
at Jumoo.uSync.Core.Serializers.SyncBaseSerializer`1.Serialize(T item)
at Jumoo.uSync.Content.ContentHandler.ExportItem(IContent item, String path, String rootFolder)
We do have some custom datatypes inside the leblender widgets, but nothing that should cause parsing issues. See the following json snippets from the grid property.
Hey Jesse, I've fixed a few issues with LeBlender/uSync recently. I've just created a new PR on Github so they should be released soon. Let me know if that fixes it!
LeBlender mapper throws InvalidCastException on content save
Umbraco: 7.8.1
Leblender: 1.0.9.2
uSync: 4.0.4
uSync.ContentEdition: 4.1.1
I've encountered a bug with the LeBlender content mapper. I encountered the following exception when saving a content node
We do have some custom datatypes inside the leblender widgets, but nothing that should cause parsing issues. See the following json snippets from the grid property.
This one fails.
but this one works.
The only structural difference I see is that one of the properties in the failed test stores it's data as json.
Hey Jesse, I've fixed a few issues with LeBlender/uSync recently. I've just created a new PR on Github so they should be released soon. Let me know if that fixes it!
is working on a reply...