U4-1361 - Lower case Media Types breaks XSLT and Razor - UmbracoCms.6.0.0.build.93

Created by Jeroen Breuer 28 Dec 2012, 20:57:02 Updated by Morten Christensen 29 Dec 2012, 12:15:42

I just tested the nightly UmbracoCms.6.0.0.build.93 and installed [DAMP 2.0|http://our.umbraco.org/FileDownload?id=3144] with [DAMP 2.0 Samples|http://our.umbraco.org/FileDownload?id=3145]. In the DAMP 2.0 samples package there are some Razor and XSLT files which don't work anymore. This is because in previous versions of Umbraco the Media Types started with a capital letter and now they don't. I had to upgrade my XSLT and Razor files like this:

<xsl:variable name="file" select="$currentPage/dampFile/DAMP/mediaItem/File" /> <xsl:variable name="file" select="$currentPage/dampFile/DAMP/mediaItem/file" /> dynamic file = Model.dampFile.mediaItem.File; dynamic file = Model.dampFile.mediaItem.file;

I haven't tested upgrading from v4 to v6, but if Media Types (and probably also Document Types and Member Types) will go from a capital letter to a lower letter this is a breaking change.

Comments

Morten Christensen 29 Dec 2012, 12:15:36

Fixed in changeset 14eef7d257c0


Priority: Major

Type: Bug

State: Fixed

Assignee: Morten Christensen

Difficulty: Normal

Category: Architecture

Backwards Compatible: True

Fix Submitted:

Affected versions: 6.0.0

Due in version: 6.0.0

Sprint:

Story Points:

Cycle: