U4-1386 - Creating document types in hierarchy shows the same documenttype in tree

Created by Joost van den Berg 04 Jan 2013, 07:36:58 Updated by Morten Christensen 09 Jan 2013, 14:31:26

Structure: Base ---BasePage ------Content Page (*)

(*) this dt is shown twice

1 Attachments

Comments

Sebastiaan Janssen 07 Jan 2013, 11:53:04

I can't reproduce this in build 108, so it's probably been fixed since you tried. Please re-open this issue if you can still reproduce this and please add some steps to repro as well (manual creation or automated, if automated through a package or through custom code).


Michiel van Nieuwkerk 08 Jan 2013, 11:00:25

I was able to reproduce this on build 110. Try the following:

When a child documenttype is created in build 110 on level 2, it is also shown on level 2. Base (level 1) DocumenttypeParent1 (level 2) DocumenttypeChild1 (level 3) DocumenttypeParent2 (level 2) DocumenttypeChild1 (??? -> should not be shown at all)


Sebastiaan Janssen 08 Jan 2013, 13:56:02

Thanks Joost & Michiel, have now been able reproduce this, I think I didn't see it before because the tree doesn't refresh properly.


Sebastiaan Janssen 09 Jan 2013, 07:30:32

Possible side effect:

During install of uBlogsy, an EventHandler is used to get the property uBlogsyContentTitle from a "uBlogsy - Post" doctype, in a nested doctype structure (see screenshot)

The error occurs when it tries to access uBlogsyContentTitle from a "uBlogsy - Post" type and it's not found on there. It should be on "uBlogsy - Base Page" but since the "uBlogsy - Post" type is also nested under "uBlogsy - Base DocType" I think it takes that one as the parent, but it also doesn't have a uBlogsyContentTitle property (see screenshot for full nesting thing).

[18] ERROR Umbraco.Web.UmbracoApplication - [Thread 23] An unhandled exception occurredSystem.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.NullReferenceException: Object reference not set to an instance of an object. at uBlogsy.BusinessLogic.DocumentService.EnsureCorrectPostNodeName(Document doc) at uBlogsy.BusinessLogic.EventHandlers.UmbracoExtensions.Document_AfterSave(Document sender, SaveEventArgs e) at umbraco.cms.businesslogic.web.Document.SaveEventHandler.Invoke(Document sender, SaveEventArgs e) at umbraco.cms.businesslogic.web.Document.FireAfterSave(SaveEventArgs e) at umbraco.cms.businesslogic.web.Document.Save() at umbraco.cms.businesslogic.web.Document.MakeNew(String Name, DocumentType dct, User u, Int32 ParentId) at umbraco.cms.businesslogic.web.Document.Import(Int32 ParentId, User Creator, XmlElement Source) at umbraco.cms.businesslogic.web.Document.Import(Int32 ParentId, User Creator, XmlElement Source) at umbraco.cms.businesslogic.web.Document.Import(Int32 ParentId, User Creator, XmlElement Source) at umbraco.cms.businesslogic.web.Document.Import(Int32 ParentId, User Creator, XmlElement Source) at umbraco.cms.businesslogic.packager.Installer.InstallBusinessLogic(Int32 packageId, String tempDir) at umbraco.presentation.developer.packages.Installer.ProcessInstall(String currentStep) at umbraco.presentation.developer.packages.Installer.Page_Load(Object sender, EventArgs e) at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at umbraco.BasePages.BasePage.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() 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.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.umbraco_developer_packages_installer_aspx.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)


Morten Christensen 09 Jan 2013, 14:31:18

The structural doc type issue in the tree is fixed in changeset 95e0b0404b71 and the one related to uBlogsy install is fixed in b49fc681e02c.


Priority: Major

Type: Bug

State: Fixed

Assignee: Morten Christensen

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions: 6.0.0

Due in version: 6.0.0

Sprint:

Story Points:

Cycle: