Applied ColdFusion fix from Russ. Applied encoding fix for MySQL dump.

This commit is contained in:
feodor_fitsner 2012-03-16 14:34:05 -07:00
parent 6726fc2ff7
commit cece69f704
4 changed files with 69 additions and 15 deletions

View file

@ -1,7 +1,7 @@
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <auto-generated> // <auto-generated>
// This code was generated by a tool. // This code was generated by a tool.
// Runtime Version:4.0.30319.239 // Runtime Version:4.0.30319.261
// //
// Changes to this file may cause incorrect behavior and will be lost if // Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated. // the code is regenerated.
@ -16,7 +16,7 @@ using System.Runtime.InteropServices;
[assembly: AssemblyCompany("Outercurve Foundation")] [assembly: AssemblyCompany("Outercurve Foundation")]
[assembly: AssemblyCopyright("Copyright © 2011 Outercurve Foundation.")] [assembly: AssemblyCopyright("Copyright © 2011 Outercurve Foundation.")]
[assembly: AssemblyVersion("1.2.1.0")] [assembly: AssemblyVersion("1.2.1.0")]
[assembly: AssemblyFileVersion("1.2.1.3")] [assembly: AssemblyFileVersion("1.2.1.4")]
[assembly: AssemblyInformationalVersion("1.2.1")] [assembly: AssemblyInformationalVersion("1.2.1")]

View file

@ -1,7 +1,7 @@
'------------------------------------------------------------------------------ '------------------------------------------------------------------------------
' <auto-generated> ' <auto-generated>
' This code was generated by a tool. ' This code was generated by a tool.
' Runtime Version:4.0.30319.239 ' Runtime Version:4.0.30319.261
' '
' Changes to this file may cause incorrect behavior and will be lost if ' Changes to this file may cause incorrect behavior and will be lost if
' the code is regenerated. ' the code is regenerated.
@ -18,6 +18,6 @@ Imports System.Runtime.InteropServices
<Assembly: AssemblyCompany("Outercurve Foundation"), _ <Assembly: AssemblyCompany("Outercurve Foundation"), _
Assembly: AssemblyCopyright("Copyright © 2011 Outercurve Foundation."), _ Assembly: AssemblyCopyright("Copyright © 2011 Outercurve Foundation."), _
Assembly: AssemblyVersion("1.2.1.0"), _ Assembly: AssemblyVersion("1.2.1.0"), _
Assembly: AssemblyFileVersion("1.2.1.3"), _ Assembly: AssemblyFileVersion("1.2.1.4"), _
Assembly: AssemblyInformationalVersion("1.2.1")> Assembly: AssemblyInformationalVersion("1.2.1")>

View file

@ -902,8 +902,9 @@ namespace WebsitePanel.Providers.Web
// //
#endregion #endregion
#region ColdFusion script mappings #region ColdFusion script mappings
//ColdFusion //ColdFusion code
if (virtualDir.ColdFusionInstalled) if (virtualDir.ColdFusionInstalled)
{ {
handlersSvc.AddScriptMaps(virtualDir, COLDFUSION_EXTENSIONS, ColdFusionPath, handlersSvc.AddScriptMaps(virtualDir, COLDFUSION_EXTENSIONS, ColdFusionPath,
@ -1348,26 +1349,78 @@ namespace WebsitePanel.Providers.Web
#region ColdFusion Virtual Directories #region ColdFusion Virtual Directories
using (ServerManager srvman = webObjectsSvc.GetServerManager()) using (ServerManager srvman = webObjectsSvc.GetServerManager())
{ {
if (ColdFusionDirectoriesAdded(srvman, site.SiteId)) //TODO: NANOFIX:Added the If block and put the rest of the code in the else block(For Virtual Directory)
if (string.IsNullOrEmpty(base.CFFlashRemotingDirPath))
{ {
if (!site.CreateCFVirtualDirectories) DeleteCFVirtualDirectories(site.SiteId);
{ site.CreateCFVirtualDirectories = false;
DeleteCFVirtualDirectories(site.SiteId);
site.CreateCFVirtualDirectories = false;
}
} }
else else
{ {
if (site.CreateCFVirtualDirectories) if (ColdFusionDirectoriesAdded(srvman, site.SiteId))
{ {
CreateCFVirtualDirectories(site.SiteId); if (!site.CreateCFVirtualDirectories)
site.CreateCFVirtualDirectories = true; {
DeleteCFVirtualDirectories(site.SiteId);
site.CreateCFVirtualDirectories = false;
}
}
else
{
if (site.CreateCFVirtualDirectories)
{
CreateCFVirtualDirectories(site.SiteId);
site.CreateCFVirtualDirectories = true;
}
} }
} }
} }
#endregion #endregion
// remove dedicated pools if any #region ColdFusionHandlerFix
//TODO: NANOFIX: Region Added for Cold Fusion Handler Fix
using (ServerManager srvman = webObjectsSvc.GetServerManager())
{
var appConfig = srvman.GetApplicationHostConfiguration();
ConfigurationSection handlersSection = appConfig.GetSection(Constants.HandlersSection, (site as WebVirtualDirectory).FullQualifiedPath);
var handlersCollection = handlersSection.GetCollection();
List<ConfigurationElement> cfElementList = new List<ConfigurationElement>();
foreach (var action in handlersCollection)
{
var name = action["name"].ToString();
if (string.Compare(name, "coldfusion", true) == 0)
{
cfElementList.Add(action);
}
}
foreach (var e in cfElementList)
{
handlersCollection.Remove(e);
}
if (site.ColdFusionInstalled)
{
var cfElement = handlersCollection.CreateElement("add");
cfElement["name"] = "coldfusion";
cfElement["modules"] = "IsapiModule";
cfElement["path"] = "*";
cfElement["scriptProcessor"] = base.ColdFusionPath;
cfElement["verb"] = "*";
cfElement["resourceType"] = "Unspecified";
cfElement["requireAccess"] = "None";
cfElement["preCondition"] = "bitness64";
handlersCollection.AddAt(0, cfElement);
}
srvman.CommitChanges();
}
#endregion
// remove dedicated pools if any
if (deleteDedicatedPools) if (deleteDedicatedPools)
DeleteDedicatedPoolsAllocated(site.Name); DeleteDedicatedPoolsAllocated(site.Name);

View file

@ -622,6 +622,7 @@ namespace WebsitePanel.Providers.Utils
ProcessStartInfo startInfo = new ProcessStartInfo(cmd, args); ProcessStartInfo startInfo = new ProcessStartInfo(cmd, args);
startInfo.WindowStyle = ProcessWindowStyle.Hidden; startInfo.WindowStyle = ProcessWindowStyle.Hidden;
startInfo.RedirectStandardOutput = true; startInfo.RedirectStandardOutput = true;
startInfo.StandardOutputEncoding = Encoding.UTF8;
startInfo.UseShellExecute = false; startInfo.UseShellExecute = false;
startInfo.CreateNoWindow = true; startInfo.CreateNoWindow = true;