U4-4361 - MediaType: runtime error when open media with renamed property

Created by Flavio Spezi 08 Mar 2014, 08:23:56 Updated by Shannon Deminick 10 Mar 2014, 09:06:59

I can't open an old Media item after change alias of property him media type. When I try to open the Media item I receive a runtime error:


Value cannot be null.
Parameter name: Property prefissoOggetto (404) on Content Type emailStandard could not be retrieved for Document 13443 on Tab Page Intestazione. To fix this problem, delete the property and recreate it.

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.ArgumentNullException: Value cannot be null.
Parameter name: Property prefissoOggetto (404) on Content Type emailStandard could not be retrieved for Document 13443 on Tab Page Intestazione. To fix this problem, delete the property and recreate it.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace: 


[ArgumentNullException: Value cannot be null.
Parameter name: Property prefissoOggetto (404) on Content Type emailStandard could not be retrieved for Document 13443 on Tab Page Intestazione. To fix this problem, delete the property and recreate it.]
   umbraco.controls.ContentControl.LoadPropertyTypes(IContentTypeComposition contentType, TabPage tabPage, Hashtable inTab, Int32 tabId, String tabCaption) +1522
   umbraco.controls.ContentControl.CreateChildControls() +1350
   System.Web.UI.Control.EnsureChildControls() +189
   umbraco.controls.ContentControl.OnInit(EventArgs e) +122
   System.Web.UI.Control.InitRecursive(Control namingContainer) +186
   System.Web.UI.Control.AddedControl(Control control, Int32 index) +189
   umbraco.cms.presentation.editMedia.OnInit(EventArgs e) +1483
   System.Web.UI.Control.InitRecursive(Control namingContainer) +186
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2098

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

To reproduce the issue:

  • create new MediaType;
  • define new property, then set alias with prop1;
  • create a new Media of MediaType;
  • set the prop1 property;
  • edit MediaType, then rename the alias of property in prop2;
  • try to open the Media item, but the browser show the issue.

Comments

Shannon Deminick 10 Mar 2014, 00:08:47

I cannot reproduce this issue with the latest codebase (6.2 beta - please test)


Flavio Spezi 10 Mar 2014, 08:17:00

If you need I can send you the entire project. It is the same of issue [http://issues.umbraco.org/issue/U4-4333 U4-4333].


Flavio Spezi 10 Mar 2014, 09:03:51

The feature works in Umbraco 6.2.0 beta.


Shannon Deminick 10 Mar 2014, 09:06:56

Great, i will close the issue than. Thanks!


Priority: Normal

Type: Bug

State: Fixed

Assignee: Shannon Deminick

Difficulty: Normal

Category: Editor

Backwards Compatible: True

Fix Submitted:

Affected versions: 6.1.6

Due in version: 6.2.0

Sprint:

Story Points:

Cycle: