U4-6304 - ContentTypeBaseRepository.MapContentTypes throws exception with SByte / Bool type with Mysql.

Created by Dennis Öhman 20 Feb 2015, 19:50:54 Updated by Shannon Deminick 05 Mar 2015, 06:51:27

YSOD after a while?

Sql-query in ContentTypeBaseRepository.MapContentTypes returns dynamic result where dtIsDefault is type SByte. Throws error when "new Tuple<bool?, int?>(x.dtIsDefault, x.dtTemplateId)", dtIsDefault is SByte and not bool.

Reference: https://our.umbraco.org/forum/getting-started/installing-umbraco/60101-Upgrade-to-721-Document-Types-Break

Comments

Jonas Skoogh 23 Feb 2015, 21:17:55

As the dtIsDefault is not supposed to be anything else than a boolean Agostinho's suggested change should be a good fix for this.

Ref: https://our.umbraco.org/forum/getting-started/installing-umbraco/60101-Upgrade-to-721-Document-Types-Break#comment204519

Regards,


Shannon Deminick 05 Mar 2015, 06:38:02

PR here: https://github.com/umbraco/Umbraco-CMS/pull/647


Priority: Show-stopper

Type: Bug

State: Fixed

Assignee: Shannon Deminick

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted: Pull request

Affected versions: 7.2.0, 7.1.8, 7.1.9, 7.2.1, 7.2.2

Due in version: 7.2.3

Sprint:

Story Points:

Cycle: