Join GitHub today
Content Template throws error when saving multiple times #2985
Saving mutliple times while adding a content template throws the following error:
This doesn't happen during the first save, but only at the second or third. I first encountered this problem in an Umbraco Cloud environment. The same issue also appears in all our other Cloud projects and also locally.
We also found a workaround:
Steps to reproduce
The step needed for reproduction are:
You don't have to edit the content template before saving again, it will give the same error if you do.
On the initial create you have a model that is compatible with ContentController.PostSaveBlueprint after save after initial create you have model that is compatible however on subsequent save the model is no longer compatible and hence you get a page not found.
I did some experimenting and in postsave I copied what initial create does see commit ismailmayat@500c673 that fixes the problem but only for existing items not newly created items.
referenced this issue
Oct 12, 2018
Oct 21, 2018
Was about to recreate this issue too (I am getting this on 7.12.4 on Umbraco Cloud). Since I'm here, I'll just note the old ticket for this issue: https://issues.umbraco.org/issue/U4-10508
Awesome to see that it appears this will be fixed in 7.13.0.