U4-2137 - Installing package with duplicate Templates and DocumentTypes causes duplicates in Template Tree and YSOD

Created by Stefan Bohlin 22 Apr 2013, 13:52:24 Updated by Morten Christensen 24 Apr 2013, 09:43:24

Relates to: U4-2112

There is several things going wrong when installing a package which has duplicate items. As far as I can see it revolves around Document Types and Templates.

I've tested two scenarios.

  1. Install package which have duplicate Templates.
  • Instead of overwriting the existing templates it just creates duplicates
  1. Install package with dupliacte Document Types.
  • On installation it throws this YSOD: A duplicate value cannot be inserted into a unique index. [ Table name = cmsContentTypeAllowedContentType,Constraint name = PK_cmsContentTypeAllowedContentType ]

This is a major show-stopper since we like to always install a base template package, tweak it and save it for later use.


Morten Christensen 23 Apr 2013, 04:47:27

I don't recall having tested the first scenario, but the second one you listed as been fixed for 6.0.4.

Stefan Bohlin 23 Apr 2013, 08:18:50

I can confirm that the second scenario is fixed in the latest nightly build of 6.0.4. I'm still seeing the first problem though.

Morten Christensen 23 Apr 2013, 08:49:25

Yup, I know what the problem is and should be easy to fix. So hoping to get that in 6.0.4 as well. Have assigned the issue to myself and will update once the issue has been fixed.

Stefan Bohlin 23 Apr 2013, 08:51:42

Awesome! Thanks!

Morten Christensen 24 Apr 2013, 09:43:24

Fixed in changeset ef8fb242adb0 so will be part of the upcoming 6.0.4 release.

Priority: Major

Type: Bug

State: Fixed

Assignee: Morten Christensen

Difficulty: Normal


Backwards Compatible: True

Fix Submitted:

Affected versions: 6.1.0, 6.0.3

Due in version: 6.0.4


Story Points: