Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,12 @@ private string GetValidWebsiteName()
var name = instanceName.Text.EmptyToNull();
Assert.IsNotNull(name, @"Instance name isn't set");

if (!Uri.IsWellFormedUriString("https://" + name, UriKind.Absolute))
{
Alert($"The '{name}' site name contains special characters that are not allowed to generate URI.");
return null;
}

var websiteExists = WebServerManager.WebsiteExists(name);
if (websiteExists)
{
Expand Down Expand Up @@ -350,7 +356,7 @@ protected void Alert([NotNull] string message, [NotNull] params object[] args)
Assert.ArgumentNotNull(message, nameof(message));
Assert.ArgumentNotNull(args, nameof(args));

WindowHelper.ShowMessage(message.FormatWith(args), "Conflict is found", MessageBoxButton.OK, MessageBoxImage.Stop);
WindowHelper.ShowMessage(message.FormatWith(args), "Conflict is found", MessageBoxButton.OK, MessageBoxImage.Warning);
}

#endregion
Expand Down Expand Up @@ -396,7 +402,8 @@ private void ProductRevisionChanged([CanBeNull] object sender, [CanBeNull] Selec
}

var name = product.DefaultInstanceName;
InstanceName.Text = name;
// Truncate the (WDP XP1 packages) string in case package name has similar format to Sitecore 10.2.0 rev. 006766 (WDP XP1 packages)
InstanceName.Text = name.Split()[0];

var frameworkVersions = new ObservableCollection<string>(_AllFrameworkVersions);

Expand Down