U4-453 - Bug when publishing protected items in the recycle bin

Created by Sebastiaan Janssen 19 Aug 2012, 14:52:59 Updated by Shannon Deminick 21 Jun 2017, 07:52:13

I know it's an odd one but here are the steps to repro.. we had a client try and save and publish an item that existed in the recycle bin.

Steps to repro:

  1. Create a protected node
  2. Create a child of a protected node (i.e. a node that inherits its' parents role-based permissions)
  3. Delete the child node
  4. try and save and publish that node while it is in the recycle bin

System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.NullReferenceException: Object reference not set to an instance of an object. at umbraco.cms.businesslogic.web.Access.GetAccessingMembershipRoles(Int32 documentId, String path) at umbraco.presentation.nodeFactory.UmbracoSiteMapProvider.findRoles(Int32 nodeId, String nodePath) at umbraco.presentation.nodeFactory.UmbracoSiteMapProvider.UpdateNode(Node node) at umbraco.content.UpdateDocumentCache(Document d) at umbraco.library.UpdateDocumentCache(Int32 DocumentId) at umbraco.cms.presentation.editContent.Publish(Object sender, EventArgs e) at System.EventHandler.Invoke(Object sender, EventArgs e) at System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) at System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

''Originally created on CodePlex by [tomenvoy|http://www.codeplex.com/site/users/view/tomenvoy]'' on 10/10/2011 7:17:24 AM [Codeplex ID: 30529 - Codeplex Votes: 1]


Shannon Deminick 21 Jun 2017, 07:52:14

Closing issue due to inactivity - see blog post for details https://umbraco.com/blog/issue-tracker-cleanup/

Priority: Normal

Type: Bug

State: Closed


Difficulty: Normal


Backwards Compatible: True

Fix Submitted:

Affected versions:

Due in version:


Story Points: