Skip to content
Merged
Show file tree
Hide file tree
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 @@ -70,7 +70,7 @@ public string AclMaintenanceUrl
{
get
{
var baseUrl = $"http://{HostName}:{DatabaseMaintenancePort}/";
var baseUrl = $"http://+:{DatabaseMaintenancePort}/";
return baseUrl;
}
}
Expand Down Expand Up @@ -208,8 +208,17 @@ protected string DefaultLogPath()

public void RemoveUrlAcl()
{
foreach (var urlReservation in UrlReservation.GetAll().Where(p => p.Url.StartsWith(AclUrl, StringComparison.OrdinalIgnoreCase) ||
p.Url.StartsWith(AclMaintenanceUrl, StringComparison.OrdinalIgnoreCase)))
//This is an old aclurl registration for embedded RavenDB instance that includes the hostname.
//We need that to make sure we can clean-up old registration when removing instances created
//using pre 4.17 versions of ServiceControl.
var legacyAclMaintenanceUrl = $"http://{HostName}:{DatabaseMaintenancePort}/";

bool IsServiceControlAclUrl(UrlReservation r) =>
r.Url.StartsWith(AclUrl, StringComparison.OrdinalIgnoreCase) ||
r.Url.StartsWith(AclMaintenanceUrl, StringComparison.OrdinalIgnoreCase) ||
r.Url.StartsWith(legacyAclMaintenanceUrl, StringComparison.OrdinalIgnoreCase);

foreach (var urlReservation in UrlReservation.GetAll().Where(IsServiceControlAclUrl))
{
try
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ public string AclMaintenanceUrl
{
get
{
var baseUrl = $"http://{HostName}:{DatabaseMaintenancePort}/";
var baseUrl = $"http://+:{DatabaseMaintenancePort}/";
return baseUrl;
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
namespace ServiceControlInstaller.PowerShell
{
using System;
using System.IO;
using System.Linq;
using System.Management.Automation;
using Engine.Instances;
Expand Down