If startpage is deleted on multisite you can't add new hostname to any website

Found in

EPiServer.CMS.Core 11.14.2

Fixed in

EPiServer.CMS.UI 11.27.0

Created

Jun 05, 2020

Updated

Jul 15, 2020

Area

CMS UI

State

Closed, Fixed and tested


Description

Steps to reproduce:
1. In edit mode, create two startpages.
2. Under "Manage websites" in admin mode, create two different websites and point them to the different startpages.
3. Delete one startpage and empty trash.
4. Go to the other website under "Manage websites" and try to add new hostname.

Expected:
Should be possible to add hostname.

Actual:
Complains about missing content

[ContentNotFoundException: Content with id xxx was not found]
   EPiServer.Core.Internal.DefaultContentLoader.Get(ContentReference contentLink, LoaderOptions loaderOptions) +530
   EPiServer.Core.Internal.<GetAncestors>d__24.MoveNext() +129
   System.Linq.Enumerable.Any(IEnumerable`1 source, Func`2 predicate) +120
   EPiServer.UI.Admin.SiteInformationEdit.ValidateStartPage(Object source, ServerValidateEventArgs args) +741
   System.Web.UI.WebControls.CustomValidator.OnServerValidate(String value) +173
   System.Web.UI.WebControls.BaseValidator.Validate() +136
   System.Web.UI.Page.Validate() +202
   EPiServer.UI.WebControls.ToolButton.RaisePostBackEvent(String eventArgument) +194
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5445