Unpublished node throws exception 7.11.1 when accessed
I am facing an issue with one of the node that is unpublish. If someone who knows the url visits it, it would crash. I have added the log and additional information below.
I have 2 ContentFinder implementation but only one of them gets called.
The other one does not get call is the one that determines whether to go to the 404 search page. Why?
Log info: It shows that Umbraco found a template and the node but why not call my other ContentFinder?
2019-03-26 17:13:28,887 [P15372/D56/T147] DEBUG Umbraco.Web.UmbracoModule - Begin request: http://uat.dummyurl.com/product.
2019-03-26 17:13:28,890 [P15372/D56/T147] DEBUG Umbraco.Web.Routing.PublishedContentRequestEngine - FindDomain: Uri="http://uat.dummyurl.com/product"
2019-03-26 17:13:28,891 [P15372/D56/T147] DEBUG Umbraco.Web.Routing.PublishedContentRequestEngine - FindDomain: Matches no domain
2019-03-26 17:13:28,892 [P15372/D56/T147] DEBUG Umbraco.Web.Routing.PublishedContentRequestEngine - FindDomain: Culture="en-US"
2019-03-26 17:13:28,893 [P15372/D56/T147] DEBUG Umbraco.Web.Routing.PublishedContentRequestEngine - FindPublishedContentAndTemplate: Path="/product"
2019-03-26 17:13:28,893 [P15372/D56/T147] DEBUG Umbraco.Web.Routing.PublishedContentRequestEngine - FindPublishedContent: Begin finders
2019-03-26 17:13:28,900 [P15372/D56/T147] DEBUG Umbraco.Core.Models.PublishedContent.PublishedPropertyType - ConvertPropertyToNestedContent (1619)
2019-03-26 17:13:28,902 [P15372/D56/T147] DEBUG Umbraco.Core.Models.PublishedContent.PublishedPropertyType - Complete (took 1ms)
2019-03-26 17:13:28,916 [P15372/D56/T147] DEBUG Umbraco.Web.Routing.ContentFinderByNiceUrl - Test route "/product"
2019-03-26 17:13:28,917 [P15372/D56/T147] DEBUG Umbraco.Web.Routing.ContentFinderByNiceUrl - No match.
2019-03-26 17:13:28,918 [P15372/D56/T147] DEBUG Umbraco.Web.Routing.ContentFinderByIdPath - Not a node id
2019-03-26 17:13:28,918 [P15372/D56/T147] DEBUG Umbraco.Web.Routing.ContentFinderByNotFoundHandlers - Running for legacy url='product'.
2019-03-26 17:13:28,919 [P15372/D56/T147] DEBUG Umbraco.Web.Routing.ContentFinderByNotFoundHandlers - Handler 'umbraco.SearchForAlias'.
2019-03-26 17:13:28,919 [P15372/D56/T147] DEBUG Umbraco.Web.Routing.ContentFinderByNotFoundHandlers - Replace handler 'umbraco.SearchForAlias' by new finder 'Umbraco.Web.Routing.ContentFinderByUrlAlias'.
2019-03-26 17:13:28,920 [P15372/D56/T147] DEBUG Umbraco.Web.Routing.ContentFinderByNotFoundHandlers - Handler 'umbraco.SearchForTemplate'.
2019-03-26 17:13:28,921 [P15372/D56/T147] DEBUG Umbraco.Web.Routing.ContentFinderByNotFoundHandlers - Replace handler 'umbraco.SearchForTemplate' by new finder 'Umbraco.Web.Routing.ContentFinderByNiceUrlAndTemplate'.
2019-03-26 17:13:28,921 [P15372/D56/T147] DEBUG Umbraco.Web.Routing.ContentFinderByNiceUrlAndTemplate - Valid template: "product"
2019-03-26 17:13:28,921 [P15372/D56/T147] DEBUG Umbraco.Web.Routing.ContentFinderByNiceUrl - Test route "/"
2019-03-26 17:13:28,922 [P15372/D56/T147] DEBUG Umbraco.Web.Routing.ContentFinderByNiceUrl - Got content, id=1094
2019-03-26 17:13:28,922 [P15372/D56/T147] DEBUG Umbraco.Web.Routing.ContentFinderByNotFoundHandlers - Finder 'Umbraco.Web.Routing.ContentFinderByNiceUrlAndTemplate' found node with id=1094.
2019-03-26 17:13:28,922 [P15372/D56/T147] DEBUG Umbraco.Web.Routing.ContentFinderByNotFoundHandlers - Handler 'umbraco.SearchForTemplate' found valid node with id=1094.
2019-03-26 17:13:28,923 [P15372/D56/T147] DEBUG Umbraco.Web.Routing.PublishedContentRequestEngine - FindPublishedContent: End finders, no document was found (took 29ms)
2019-03-26 17:13:28,923 [P15372/D56/T147] DEBUG Umbraco.Web.Routing.PublishedContentRequestEngine - HandlePublishedContent: Begin
2019-03-26 17:13:28,923 [P15372/D56/T147] DEBUG Umbraco.Web.Routing.PublishedContentRequestEngine - EnsurePublishedContentAccess: Page is not protected
2019-03-26 17:13:28,924 [P15372/D56/T147] DEBUG Umbraco.Web.Routing.PublishedContentRequestEngine - HandlePublishedContent: End
2019-03-26 17:13:28,924 [P15372/D56/T147] DEBUG Umbraco.Web.Routing.PublishedContentRequest - FindTemplate: Has a template already, and no alternate template.
2019-03-26 17:13:28,924 [P15372/D56/T147] DEBUG Umbraco.Web.Routing.PublishedContentRequestEngine - HandleWildcardDomains: Path="-1,1094"
2019-03-26 17:13:28,924 [P15372/D56/T147] DEBUG Umbraco.Web.Routing.PublishedContentRequestEngine - HandleWildcardDomains: No match.
2019-03-26 17:13:28,925 [P15372/D56/T147] DEBUG Umbraco.Web.UmbracoModule - Response status: Redirect=none, Is404=false, StatusCode=0
2019-03-26 17:13:28,928 [P15372/D56/T147] ERROR Umbraco.Core.UmbracoApplicationBase - An unhandled exception occurred
Umbraco.Web.Mvc.ModelBindingException: Cannot bind source content type ModelsBuilder.API.Models.Home to model type ModelsBuilder.API.Models.product.
at Umbraco.Web.Mvc.RenderModelBinder.ThrowModelBindingException(Boolean sourceContent, Boolean modelContent, Type sourceType, Type modelType)
at Umbraco.Web.Mvc.RenderModelBinder.BindModel(Object source, Type modelType, CultureInfo culture)
at Umbraco.Web.Mvc.UmbracoViewPage1.SetViewData(ViewDataDictionary viewData)
at System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance)
at Umbraco.Core.Profiling.ProfilingView.Render(ViewContext viewContext, TextWriter writer)
at System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList1 filters, ActionResult actionResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>cDisplayClass31.5(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult)
at System.Web.Mvc.Controller.<>c.
Unpublished node throws exception 7.11.1 when accessed
I am facing an issue with one of the node that is unpublish. If someone who knows the url visits it, it would crash. I have added the log and additional information below.
Log info: It shows that Umbraco found a template and the node but why not call my other ContentFinder?
2019-03-26 17:13:28,887 [P15372/D56/T147] DEBUG Umbraco.Web.UmbracoModule - Begin request: http://uat.dummyurl.com/product. 2019-03-26 17:13:28,890 [P15372/D56/T147] DEBUG Umbraco.Web.Routing.PublishedContentRequestEngine - FindDomain: Uri="http://uat.dummyurl.com/product" 2019-03-26 17:13:28,891 [P15372/D56/T147] DEBUG Umbraco.Web.Routing.PublishedContentRequestEngine - FindDomain: Matches no domain 2019-03-26 17:13:28,892 [P15372/D56/T147] DEBUG Umbraco.Web.Routing.PublishedContentRequestEngine - FindDomain: Culture="en-US" 2019-03-26 17:13:28,893 [P15372/D56/T147] DEBUG Umbraco.Web.Routing.PublishedContentRequestEngine - FindPublishedContentAndTemplate: Path="/product" 2019-03-26 17:13:28,893 [P15372/D56/T147] DEBUG Umbraco.Web.Routing.PublishedContentRequestEngine - FindPublishedContent: Begin finders 2019-03-26 17:13:28,900 [P15372/D56/T147] DEBUG Umbraco.Core.Models.PublishedContent.PublishedPropertyType - ConvertPropertyToNestedContent (1619) 2019-03-26 17:13:28,902 [P15372/D56/T147] DEBUG Umbraco.Core.Models.PublishedContent.PublishedPropertyType - Complete (took 1ms) 2019-03-26 17:13:28,916 [P15372/D56/T147] DEBUG Umbraco.Web.Routing.ContentFinderByNiceUrl - Test route "/product" 2019-03-26 17:13:28,917 [P15372/D56/T147] DEBUG Umbraco.Web.Routing.ContentFinderByNiceUrl - No match. 2019-03-26 17:13:28,918 [P15372/D56/T147] DEBUG Umbraco.Web.Routing.ContentFinderByIdPath - Not a node id 2019-03-26 17:13:28,918 [P15372/D56/T147] DEBUG Umbraco.Web.Routing.ContentFinderByNotFoundHandlers - Running for legacy url='product'. 2019-03-26 17:13:28,919 [P15372/D56/T147] DEBUG Umbraco.Web.Routing.ContentFinderByNotFoundHandlers - Handler 'umbraco.SearchForAlias'. 2019-03-26 17:13:28,919 [P15372/D56/T147] DEBUG Umbraco.Web.Routing.ContentFinderByNotFoundHandlers - Replace handler 'umbraco.SearchForAlias' by new finder 'Umbraco.Web.Routing.ContentFinderByUrlAlias'. 2019-03-26 17:13:28,920 [P15372/D56/T147] DEBUG Umbraco.Web.Routing.ContentFinderByNotFoundHandlers - Handler 'umbraco.SearchForTemplate'. 2019-03-26 17:13:28,921 [P15372/D56/T147] DEBUG Umbraco.Web.Routing.ContentFinderByNotFoundHandlers - Replace handler 'umbraco.SearchForTemplate' by new finder 'Umbraco.Web.Routing.ContentFinderByNiceUrlAndTemplate'. 2019-03-26 17:13:28,921 [P15372/D56/T147] DEBUG Umbraco.Web.Routing.ContentFinderByNiceUrlAndTemplate - Valid template: "product" 2019-03-26 17:13:28,921 [P15372/D56/T147] DEBUG Umbraco.Web.Routing.ContentFinderByNiceUrl - Test route "/" 2019-03-26 17:13:28,922 [P15372/D56/T147] DEBUG Umbraco.Web.Routing.ContentFinderByNiceUrl - Got content, id=1094 2019-03-26 17:13:28,922 [P15372/D56/T147] DEBUG Umbraco.Web.Routing.ContentFinderByNotFoundHandlers - Finder 'Umbraco.Web.Routing.ContentFinderByNiceUrlAndTemplate' found node with id=1094. 2019-03-26 17:13:28,922 [P15372/D56/T147] DEBUG Umbraco.Web.Routing.ContentFinderByNotFoundHandlers - Handler 'umbraco.SearchForTemplate' found valid node with id=1094. 2019-03-26 17:13:28,923 [P15372/D56/T147] DEBUG Umbraco.Web.Routing.PublishedContentRequestEngine - FindPublishedContent: End finders, no document was found (took 29ms) 2019-03-26 17:13:28,923 [P15372/D56/T147] DEBUG Umbraco.Web.Routing.PublishedContentRequestEngine - HandlePublishedContent: Begin 2019-03-26 17:13:28,923 [P15372/D56/T147] DEBUG Umbraco.Web.Routing.PublishedContentRequestEngine - EnsurePublishedContentAccess: Page is not protected 2019-03-26 17:13:28,924 [P15372/D56/T147] DEBUG Umbraco.Web.Routing.PublishedContentRequestEngine - HandlePublishedContent: End 2019-03-26 17:13:28,924 [P15372/D56/T147] DEBUG Umbraco.Web.Routing.PublishedContentRequest - FindTemplate: Has a template already, and no alternate template. 2019-03-26 17:13:28,924 [P15372/D56/T147] DEBUG Umbraco.Web.Routing.PublishedContentRequestEngine - HandleWildcardDomains: Path="-1,1094" 2019-03-26 17:13:28,924 [P15372/D56/T147] DEBUG Umbraco.Web.Routing.PublishedContentRequestEngine - HandleWildcardDomains: No match. 2019-03-26 17:13:28,925 [P15372/D56/T147] DEBUG Umbraco.Web.UmbracoModule - Response status: Redirect=none, Is404=false, StatusCode=0 2019-03-26 17:13:28,928 [P15372/D56/T147] ERROR Umbraco.Core.UmbracoApplicationBase - An unhandled exception occurred Umbraco.Web.Mvc.ModelBindingException: Cannot bind source content type ModelsBuilder.API.Models.Home to model type ModelsBuilder.API.Models.product. at Umbraco.Web.Mvc.RenderModelBinder.ThrowModelBindingException(Boolean sourceContent, Boolean modelContent, Type sourceType, Type modelType) at Umbraco.Web.Mvc.RenderModelBinder.BindModel(Object source, Type modelType, CultureInfo culture) at Umbraco.Web.Mvc.UmbracoViewPage
1.SetViewData(ViewDataDictionary viewData) at System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance) at Umbraco.Core.Profiling.ProfilingView.Render(ViewContext viewContext, TextWriter writer) at System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList
1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList
1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList
1 filters, ActionResult actionResult) at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>cDisplayClass31.5(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) at System.Web.Mvc.Controller.<>c.Made a change to my customErrors property in the config file to redirect. It wasn't set.
Thanks.
is working on a reply...