Fixed:
Could not add contacts to a distribution lists Create mailbox: room and equipment showed as numbers Create Hosting Space: alignment of the hostname textbox Webpointers: blank hostname did not register as dns alias Webpublishing: generation of user name, username was not showing domain part BackupWizard: ensured progress bar is at 100% when task is completed Change mailbox plan did not update the size indicator setup instruction tab is shown when there is no setup template
This commit is contained in:
parent
bc0d70d1a4
commit
448429a5d2
13 changed files with 80 additions and 50 deletions
|
@ -91,10 +91,24 @@ namespace WebsitePanel.EnterpriseServer
|
|||
return (string[])list.ToArray(typeof(string));
|
||||
}
|
||||
|
||||
|
||||
public static string ReplaceStringVariable(string str, string variable, string value)
|
||||
{
|
||||
if (String.IsNullOrEmpty(str) || String.IsNullOrEmpty(value))
|
||||
return str;
|
||||
return ReplaceStringVariable(str, variable, value, false);
|
||||
}
|
||||
|
||||
public static string ReplaceStringVariable(string str, string variable, string value, bool allowEmptyValue)
|
||||
{
|
||||
if (allowEmptyValue)
|
||||
{
|
||||
if (String.IsNullOrEmpty(str)) return str;
|
||||
if (String.IsNullOrEmpty(value)) return string.Empty;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (String.IsNullOrEmpty(str) || String.IsNullOrEmpty(value))
|
||||
return str;
|
||||
}
|
||||
|
||||
Regex re = new Regex("\\[" + variable + "\\]+", RegexOptions.IgnoreCase);
|
||||
return re.Replace(str, value);
|
||||
|
|
|
@ -279,7 +279,7 @@ namespace WebsitePanel.EnterpriseServer
|
|||
{
|
||||
DnsRecord rr = new DnsRecord();
|
||||
rr.RecordType = (DnsRecordType)Enum.Parse(typeof(DnsRecordType), record.RecordType, true);
|
||||
rr.RecordName = Utils.ReplaceStringVariable(record.RecordName, "host_name", hostName);
|
||||
rr.RecordName = Utils.ReplaceStringVariable(record.RecordName, "host_name", hostName, true);
|
||||
|
||||
if (record.RecordType == "A" || record.RecordType == "AAAA")
|
||||
{
|
||||
|
|
|
@ -186,7 +186,8 @@ namespace WebsitePanel.EnterpriseServer
|
|||
IBackupController controller = null;
|
||||
try
|
||||
{
|
||||
controller = Activator.CreateInstance(Type.GetType(group.GroupController)) as IBackupController;
|
||||
if (group.GroupController != null)
|
||||
controller = Activator.CreateInstance(Type.GetType(group.GroupController)) as IBackupController;
|
||||
if (controller != null)
|
||||
{
|
||||
// backup items
|
||||
|
@ -342,6 +343,7 @@ namespace WebsitePanel.EnterpriseServer
|
|||
}
|
||||
}
|
||||
|
||||
TaskManager.IndicatorCurrent = TaskManager.IndicatorMaximum;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
|
@ -765,6 +765,7 @@ namespace WebsitePanel.EnterpriseServer
|
|||
TaskManager.StartTask("WEB_SITE", "ADD_POINTER", siteItem.Name);
|
||||
TaskManager.ItemId = siteItemId;
|
||||
TaskManager.WriteParameter("Domain pointer", domain.DomainName);
|
||||
TaskManager.WriteParameter("Host name", hostName);
|
||||
|
||||
try
|
||||
{
|
||||
|
@ -1995,6 +1996,12 @@ namespace WebsitePanel.EnterpriseServer
|
|||
//
|
||||
WebServer server = GetWebServer(item.ServiceId);
|
||||
|
||||
StringDictionary webSettings = ServerController.GetServiceSettings(item.ServiceId);
|
||||
if (webSettings["WmSvc.NETBIOS"] != null)
|
||||
{
|
||||
accountName = webSettings["WmSvc.NETBIOS"].ToString() + "\\" + accountName;
|
||||
}
|
||||
|
||||
// Most part of the functionality used to enable Web Deploy publishing correspond to those created for Web Management purposes,
|
||||
// so we can re-use the existing functionality to deliver seamless development experience.
|
||||
if (server.CheckWebManagementAccountExists(accountName))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue