U4-5388 - YSOD after doctype rename

Created by Mirko Matytschak 24 Aug 2014, 12:03:20 Updated by Sebastiaan Janssen 25 Aug 2014, 14:25:19

Is duplicated by: U4-5393

Relates to: U4-5387

Umbraco 7.1.5: Renaming a doctype shows an error. Nevertheless the rename has been performed.

1 Attachments

Comments

Sebastiaan Janssen 24 Aug 2014, 12:54:23

Probably the same issue as U4-5387


Shannon Deminick 25 Aug 2014, 06:11:06

Fixed in rev: 4cec6a3213e800a5720e79d48eb1b108e501ed84

Problem is because the doc type editor runs on an async (threadpool) thread so HttpContext.Current is null even though it's running in a web request. We had this issue with other things in the past too, the way it is solved is to access the HttpContext from the UmbracoContext since we have full control over the UmbracoContext singleton, when the code is executing on the async thread, we re-assign the UmbracoContext singleton with the original http context.


Priority: Normal

Type: Bug

State: Fixed

Assignee: Shannon Deminick

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions: 7.1.5

Due in version: 7.1.6

Sprint:

Story Points:

Cycle: