porting 7.6-rc1 into 8

This commit is contained in:
Stephan
2017-05-12 14:49:44 +02:00
parent ade6c2f057
commit 8561d85f7a
1148 changed files with 41983 additions and 17045 deletions

View File

@@ -83,10 +83,7 @@ namespace Umbraco.Web
// write the trace output for diagnostics at the end of the request
httpContext.Trace.Write("UmbracoModule", "Umbraco request begins");
// process
// create the database scope which will be disposed with http context
var scope = DatabaseFactory.CreateScope();
// ok, process
// create the LegacyRequestInitializer
// and initialize legacy stuff
@@ -345,7 +342,7 @@ namespace Umbraco.Web
logger.Debug<UmbracoModule>("Response status: Redirect={0}, Is404={1}, StatusCode={2}",
() => pcr.IsRedirect ? (pcr.IsRedirectPermanent ? "permanent" : "redirect") : "none",
() => pcr.Is404 ? "true" : "false", () => pcr.ResponseStatusCode);
if(pcr.Cacheability != default(HttpCacheability))
response.Cache.SetCacheability(pcr.Cacheability);
@@ -506,7 +503,7 @@ namespace Umbraco.Web
if (Core.DI.Current.RuntimeState.Level == RuntimeLevel.BootFailed)
{
// there's nothing we can do really
app.BeginRequest += (sender, args) => { throw new BootFailedException("Boot failed. Umbraco cannot run. Umbraco's log file contains details about what caused the boot to fail."); };
app.BeginRequest += (sender, args) => throw new BootFailedException("Boot failed. Umbraco cannot run. Umbraco's log file contains details about what caused the boot to fail.");
return;
}