U4-2787 - Copy dialog results in YSOD

Created by Shannon Deminick 04 Sep 2013, 08:28:41 Updated by Shannon Deminick 26 Sep 2013, 07:17:10

Subtask of: U4-2891

I think this is something to do with the legacy data type structures.

Server Error in '/' Application.

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

Line 60: //Just to ensure that there is a PropertyType available Line 61: _pt = PropertyType.GetPropertyType(property.PropertyTypeId); Line 62: _data = _pt.DataTypeDefinition.DataType.Data; Line 63: _data.PropertyId = Id; Line 64: }

Source File: x:\Projects\Umbraco\Umbraco_7.0\src\umbraco.cms\businesslogic\Property\Property.cs Line: 62

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.] umbraco.cms.businesslogic.property.Property..ctor(Property property) in x:\Projects\Umbraco\Umbraco_7.0\src\umbraco.cms\businesslogic\Property\Property.cs:62 umbraco.cms.businesslogic.Content.b__e(Property x) in x:\Projects\Umbraco\Umbraco_7.0\src\umbraco.cms\businesslogic\Content.cs:650 System.Linq.WhereSelectEnumerableIterator2.MoveNext() +145 System.Collections.Generic.List1.InsertRange(Int32 index, IEnumerable1 collection) +392 System.Collections.Generic.List1.AddRange(IEnumerable`1 collection) +10 umbraco.cms.businesslogic.Content.InitializeProperties() in x:\Projects\Umbraco\Umbraco_7.0\src\umbraco.cms\businesslogic\Content.cs:650 umbraco.cms.businesslogic.Content.EnsureProperties() in x:\Projects\Umbraco\Umbraco_7.0\src\umbraco.cms\businesslogic\Content.cs:629 umbraco.cms.businesslogic.Content.get_GenericProperties() in x:\Projects\Umbraco\Umbraco_7.0\src\umbraco.cms\businesslogic\Content.cs:225 Umbraco.Web.Strategies.DataTypes.LegacyUploadFieldWorkaround.DocumentBeforeSave(Document sender, SaveEventArgs e) +100 umbraco.cms.businesslogic.web.Document.FireBeforeSave(SaveEventArgs e) in x:\Projects\Umbraco\Umbraco_7.0\src\umbraco.cms\businesslogic\web\Document.cs:1684 umbraco.cms.businesslogic.web.Document.Save() in x:\Projects\Umbraco\Umbraco_7.0\src\umbraco.cms\businesslogic\web\Document.cs:966 umbraco.cms.businesslogic.web.Document.Copy(Int32 CopyTo, User u, Boolean RelateToOrignal) in x:\Projects\Umbraco\Umbraco_7.0\src\umbraco.cms\businesslogic\web\Document.cs:1169 umbraco.dialogs.moveOrCopy.HandleDocumentMoveOrCopy() +4019 umbraco.dialogs.moveOrCopy.HandleMoveOrCopy(Object sender, EventArgs e) +110 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +9552602 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +103 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +35 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1724

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18045

Comments

Shannon Deminick 26 Sep 2013, 06:51:17

Now it's just happening if you have new property editors and no mapping - which will happen often - it's because we need to update all of our APIs to use the new services otherwise we're gonna keep getting this.


Priority: Normal

Type: Bug

State: Fixed

Assignee: Shannon Deminick

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions:

Due in version: 7.0.0

Sprint:

Story Points:

Cycle: