Skip to content
This repository has been archived by the owner on Mar 7, 2019. It is now read-only.

ToPublishedContentSet Throws Exception for Orphaned Properties #418

Closed
Nicholas-Westby opened this issue Aug 3, 2017 · 2 comments
Closed
Assignees

Comments

@Nicholas-Westby
Copy link
Contributor

You can read the detailed version here: umco/umbraco-ditto#221

In short, I created an Archetype fieldset, created some content based on that, then renamed a property. When I try to get at that content (I'm mapping it with Ditto), I get a null exception. The problem seems to start here: https://github.com/rhythmagency/rhythm.umbraco.ditto.archetype/blob/aeb9402dad2f39a8b506b7036b0ee068ed706432/src/Rhythm.Umbraco.Ditto.Archetype/Processors/DittoArchetypeAttribute.cs

That code is called ToPublishedContentSet. That in turn creates some Umbraco published property types, which in turn get run through property value converter. Something is null along the way, which causes a null exception.

I think it's because the saved JSON data still contains the old data, and Archetype tries to match that up with the Archetype fieldset definition, but there is a mismatch.

The ideal solution would be for Archetype to completely disregard any orphaned properties within a fieldset.

Latest version of Archetype (1.14.1), Umbraco (7.6.4), and Ditto (0.11.0).

@kjac
Copy link
Contributor

kjac commented Aug 9, 2017

Fixed. We'll keep the issue open until a new release is ready.

@kjac kjac reopened this Aug 9, 2017
@kjac kjac self-assigned this Aug 9, 2017
@kjac
Copy link
Contributor

kjac commented Aug 18, 2017

Fixed in v1.15.1

@kjac kjac closed this as completed Aug 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants