U4-8098 - Content Type editor can fail while rendering

Created by Jeroen Breuer 01 Mar 2016, 08:11:31 Updated by Shannon Deminick 29 Mar 2017, 07:59:42

Duplicates: U4-7602

Relates to: U4-8244

The new Content Type editor tries to preview the Data Types that are on current Content Type. This preview can crash the page. For example when you have MNTP with an xpath of $current. These errors should not cause the page to crash.

For example it could cause this error:

umbraco/backoffice/UmbracoApi/ContentType/GetById?id=1048 http 500 Mapping types: ContentType -> IEnumerable1 Umbraco.Core.Models.ContentType -> System.Collections.Generic.IEnumerable1[[Umbraco.Web.Models.ContentEditing.PropertyGroupDisplay`1[[Umbraco.Web.Models.ContentEditing.PropertyTypeDisplay, umbraco, Version=1.0.5891.23243, Culture=neutral, PublicKeyToken=null]], umbraco, Version=1.0.5891.23243, Culture=neutral, PublicKeyToken=null]]

Destination path: DocumentTypeDisplay.Groups.Groups

Source value: Umbraco.Core.Models.ContentType

More info in this topic: https://our.umbraco.org/forum/core/general/75202-after-update-to-741-cant-access-nested-doctypes


Jeroen Breuer 01 Mar 2016, 08:15:44

Just tried to an MNTP with an xpath of $current on a 7.4.1 install, but that didn't crash. Still created an issue for this to see if other people can reproduce this.

Lee Kelleher 25 Mar 2017, 13:50:16

I've submitted a PR to workaround this: https://github.com/umbraco/Umbraco-CMS/pull/1832

Priority: Normal

Type: Bug

State: Duplicate


Difficulty: Normal


Backwards Compatible: True

Fix Submitted: Pull request

Affected versions:

Due in version:


Story Points: