U4-10022 - Modelsbuilder validation needs to be re-added when creating document types

Created by Mikkel Holck Madsen 14 Jun 2017, 14:02:10 Updated by Mikkel Holck Madsen 14 Jun 2017, 14:02:10

Your report will have a greater chance of being addressed if you can give us clear steps to reproduce the issue, please answer the following questions in as much detail as possible: What did you do? I Created a documenttype called Home, created a Tab called Content and a Property type called Content. This worked, but we do know that ModelsBuilder doesnt work, when a document type has these kinds of names in it.

We used to have some validation rules when creating the document types, these seems to have gone missing over the last few versions.

I tried this with the zip package of 7.6.3.

A ''guestimate'' could be that it was relying on the build of the models to fail, and then showing the validation message. Reason is that we fixed it so generation doesnt fail in http://issues.umbraco.org/issue/U4-9743.

The exception is not shown untill ModelsBuilder is actually used. I just implemented a simple template having this content:

@inherits Umbraco.Web.Mvc.UmbracoTemplatePage<ContentModels.MyAwesomeContent>
@using ContentModels = Umbraco.Web.PublishedContentModels;
@{
	Layout = null;
}

@Model.Content.Content

Comments

Priority: Normal

Type: Bug

State: Submitted

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions:

Due in version:

Sprint:

Story Points:

Cycle: