From 52ef855eb7101e95941f45db27fb8f6d502b7f14 Mon Sep 17 00:00:00 2001 From: Rhys Bevilaqua Date: Fri, 27 Nov 2026 11:57:31 +0800 Subject: [PATCH 1/4] Handle obsoletes for v7 --- .../Cmdlets/UrlAcls/AddUrlAcl.cs | 20 ----------------- .../Cmdlets/UrlAcls/GetUrlAcls.cs | 11 ---------- .../Cmdlets/UrlAcls/RemoveUrlAcl.cs | 11 ---------- .../Cmdlets/UrlAcls/obsoletes-v7.cs | 22 +++++++++++++++++++ 4 files changed, 22 insertions(+), 42 deletions(-) delete mode 100644 src/ServiceControl.Management.PowerShell/Cmdlets/UrlAcls/AddUrlAcl.cs delete mode 100644 src/ServiceControl.Management.PowerShell/Cmdlets/UrlAcls/GetUrlAcls.cs delete mode 100644 src/ServiceControl.Management.PowerShell/Cmdlets/UrlAcls/RemoveUrlAcl.cs create mode 100644 src/ServiceControl.Management.PowerShell/Cmdlets/UrlAcls/obsoletes-v7.cs diff --git a/src/ServiceControl.Management.PowerShell/Cmdlets/UrlAcls/AddUrlAcl.cs b/src/ServiceControl.Management.PowerShell/Cmdlets/UrlAcls/AddUrlAcl.cs deleted file mode 100644 index 8231789209..0000000000 --- a/src/ServiceControl.Management.PowerShell/Cmdlets/UrlAcls/AddUrlAcl.cs +++ /dev/null @@ -1,20 +0,0 @@ -namespace ServiceControl.Management.PowerShell -{ - using System; - using System.Management.Automation; - using Particular.Obsoletes; - - [ObsoleteMetadata(Message = "ServiceControl no longer requires URL reservations, so this command no longer functions", ReplacementTypeOrMember = "netsh http add urlacl", TreatAsErrorFromVersion = "7", RemoveInVersion = "8")] - [Obsolete("ServiceControl no longer requires URL reservations, so this command no longer functions. Use 'netsh http add urlacl' instead. Will be treated as an error from version 7.0.0. Will be removed in version 8.0.0.", false)] - [Cmdlet(VerbsCommon.Add, "UrlAcl")] - public class AddUrlAcl : PSCmdlet - { - [ValidateNotNullOrEmpty] - [Parameter(Mandatory = true, Position = 0, HelpMessage = "The URL to add to the URLACL list. This should always in a trailing /")] - public string Url { get; set; } - - [ValidateNotNullOrEmpty] - [Parameter(Mandatory = true, Position = 1, HelpMessage = "The user or group to assign to this URLACL")] - public string[] Users; - } -} \ No newline at end of file diff --git a/src/ServiceControl.Management.PowerShell/Cmdlets/UrlAcls/GetUrlAcls.cs b/src/ServiceControl.Management.PowerShell/Cmdlets/UrlAcls/GetUrlAcls.cs deleted file mode 100644 index ca1d6c3c9c..0000000000 --- a/src/ServiceControl.Management.PowerShell/Cmdlets/UrlAcls/GetUrlAcls.cs +++ /dev/null @@ -1,11 +0,0 @@ -namespace ServiceControl.Management.PowerShell -{ - using System; - using System.Management.Automation; - using Particular.Obsoletes; - - [ObsoleteMetadata(Message = "ServiceControl no longer requires URL reservations, so this command no longer functions", ReplacementTypeOrMember = "netsh http show urlacl", TreatAsErrorFromVersion = "7", RemoveInVersion = "8")] - [Obsolete("ServiceControl no longer requires URL reservations, so this command no longer functions. Use 'netsh http show urlacl' instead. Will be treated as an error from version 7.0.0. Will be removed in version 8.0.0.", false)] - [Cmdlet(VerbsCommon.Get, "UrlAcls")] - public class GetUrlAcls : PSCmdlet; -} \ No newline at end of file diff --git a/src/ServiceControl.Management.PowerShell/Cmdlets/UrlAcls/RemoveUrlAcl.cs b/src/ServiceControl.Management.PowerShell/Cmdlets/UrlAcls/RemoveUrlAcl.cs deleted file mode 100644 index 19855324eb..0000000000 --- a/src/ServiceControl.Management.PowerShell/Cmdlets/UrlAcls/RemoveUrlAcl.cs +++ /dev/null @@ -1,11 +0,0 @@ -namespace ServiceControl.Management.PowerShell -{ - using System; - using System.Management.Automation; - using Particular.Obsoletes; - - [ObsoleteMetadata(Message = "ServiceControl no longer requires URL reservations, so this command no longer functions", ReplacementTypeOrMember = "netsh http delete urlacl", TreatAsErrorFromVersion = "7", RemoveInVersion = "8")] - [Obsolete("ServiceControl no longer requires URL reservations, so this command no longer functions. Use 'netsh http delete urlacl' instead. Will be treated as an error from version 7.0.0. Will be removed in version 8.0.0.", false)] - [Cmdlet(VerbsCommon.Remove, "UrlAcl")] - public class RemoveUrlAcl : PSCmdlet; -} \ No newline at end of file diff --git a/src/ServiceControl.Management.PowerShell/Cmdlets/UrlAcls/obsoletes-v7.cs b/src/ServiceControl.Management.PowerShell/Cmdlets/UrlAcls/obsoletes-v7.cs new file mode 100644 index 0000000000..ff5cb9cfb5 --- /dev/null +++ b/src/ServiceControl.Management.PowerShell/Cmdlets/UrlAcls/obsoletes-v7.cs @@ -0,0 +1,22 @@ +#pragma warning disable CS1591 +namespace ServiceControl.Management.PowerShell +{ + using System; + using System.Management.Automation; + using Particular.Obsoletes; + + [ObsoleteMetadata(Message = "ServiceControl no longer requires URL reservations, so this command no longer functions", ReplacementTypeOrMember = "netsh http show urlacl", TreatAsErrorFromVersion = "7", RemoveInVersion = "8")] + [Obsolete("ServiceControl no longer requires URL reservations, so this command no longer functions. Use 'netsh http show urlacl' instead. Will be treated as an error from version 7.0.0. Will be removed in version 8.0.0.", true)] + [Cmdlet(VerbsCommon.Get, "UrlAcls")] + public class GetUrlAcls : PSCmdlet; + + [ObsoleteMetadata(Message = "ServiceControl no longer requires URL reservations, so this command no longer functions", ReplacementTypeOrMember = "netsh http add urlacl", TreatAsErrorFromVersion = "7", RemoveInVersion = "8")] + [Obsolete("ServiceControl no longer requires URL reservations, so this command no longer functions. Use 'netsh http add urlacl' instead. Will be treated as an error from version 7.0.0. Will be removed in version 8.0.0.", true)] + [Cmdlet(VerbsCommon.Add, "UrlAcl")] + public class AddUrlAcl : PSCmdlet; + + [ObsoleteMetadata(Message = "ServiceControl no longer requires URL reservations, so this command no longer functions", ReplacementTypeOrMember = "netsh http delete urlacl", TreatAsErrorFromVersion = "7", RemoveInVersion = "8")] + [Obsolete("ServiceControl no longer requires URL reservations, so this command no longer functions. Use 'netsh http delete urlacl' instead. Will be treated as an error from version 7.0.0. Will be removed in version 8.0.0.", true)] + [Cmdlet(VerbsCommon.Remove, "UrlAcl")] + public class RemoveUrlAcl : PSCmdlet; +} \ No newline at end of file From 0a18a938c76e3d0c59af5850c2fc75f86f4f8d8e Mon Sep 17 00:00:00 2001 From: Rhys Bevilaqua Date: Fri, 27 Nov 2026 12:08:41 +0800 Subject: [PATCH 2/4] Update pragma --- .../Cmdlets/UrlAcls/obsoletes-v7.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ServiceControl.Management.PowerShell/Cmdlets/UrlAcls/obsoletes-v7.cs b/src/ServiceControl.Management.PowerShell/Cmdlets/UrlAcls/obsoletes-v7.cs index ff5cb9cfb5..06409dd7fa 100644 --- a/src/ServiceControl.Management.PowerShell/Cmdlets/UrlAcls/obsoletes-v7.cs +++ b/src/ServiceControl.Management.PowerShell/Cmdlets/UrlAcls/obsoletes-v7.cs @@ -1,4 +1,5 @@ #pragma warning disable CS1591 +#pragma warning disable OBSOLETES0010 namespace ServiceControl.Management.PowerShell { using System; From 63f14f3b752da4b25ae489392776087b61efae2d Mon Sep 17 00:00:00 2001 From: Rhys Bevilaqua Date: Fri, 27 Nov 2026 12:23:26 +0800 Subject: [PATCH 3/4] Update obsolete messages --- .../Cmdlets/UrlAcls/obsoletes-v7.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/ServiceControl.Management.PowerShell/Cmdlets/UrlAcls/obsoletes-v7.cs b/src/ServiceControl.Management.PowerShell/Cmdlets/UrlAcls/obsoletes-v7.cs index 06409dd7fa..261e0a4fae 100644 --- a/src/ServiceControl.Management.PowerShell/Cmdlets/UrlAcls/obsoletes-v7.cs +++ b/src/ServiceControl.Management.PowerShell/Cmdlets/UrlAcls/obsoletes-v7.cs @@ -1,5 +1,4 @@ #pragma warning disable CS1591 -#pragma warning disable OBSOLETES0010 namespace ServiceControl.Management.PowerShell { using System; @@ -7,17 +6,17 @@ namespace ServiceControl.Management.PowerShell using Particular.Obsoletes; [ObsoleteMetadata(Message = "ServiceControl no longer requires URL reservations, so this command no longer functions", ReplacementTypeOrMember = "netsh http show urlacl", TreatAsErrorFromVersion = "7", RemoveInVersion = "8")] - [Obsolete("ServiceControl no longer requires URL reservations, so this command no longer functions. Use 'netsh http show urlacl' instead. Will be treated as an error from version 7.0.0. Will be removed in version 8.0.0.", true)] + [Obsolete("ServiceControl no longer requires URL reservations, so this command no longer functions. Use 'netsh http show urlacl' instead. Will be removed in version 8.0.0.", true)] [Cmdlet(VerbsCommon.Get, "UrlAcls")] public class GetUrlAcls : PSCmdlet; [ObsoleteMetadata(Message = "ServiceControl no longer requires URL reservations, so this command no longer functions", ReplacementTypeOrMember = "netsh http add urlacl", TreatAsErrorFromVersion = "7", RemoveInVersion = "8")] - [Obsolete("ServiceControl no longer requires URL reservations, so this command no longer functions. Use 'netsh http add urlacl' instead. Will be treated as an error from version 7.0.0. Will be removed in version 8.0.0.", true)] + [Obsolete("ServiceControl no longer requires URL reservations, so this command no longer functions. Use 'netsh http add urlacl' instead. Will be removed in version 8.0.0.", true)] [Cmdlet(VerbsCommon.Add, "UrlAcl")] public class AddUrlAcl : PSCmdlet; [ObsoleteMetadata(Message = "ServiceControl no longer requires URL reservations, so this command no longer functions", ReplacementTypeOrMember = "netsh http delete urlacl", TreatAsErrorFromVersion = "7", RemoveInVersion = "8")] - [Obsolete("ServiceControl no longer requires URL reservations, so this command no longer functions. Use 'netsh http delete urlacl' instead. Will be treated as an error from version 7.0.0. Will be removed in version 8.0.0.", true)] + [Obsolete("ServiceControl no longer requires URL reservations, so this command no longer functions. Use 'netsh http delete urlacl' instead. Will be removed in version 8.0.0.", true)] [Cmdlet(VerbsCommon.Remove, "UrlAcl")] public class RemoveUrlAcl : PSCmdlet; } \ No newline at end of file From 606f96858323cfe5af5045c458fdb3498957ccd0 Mon Sep 17 00:00:00 2001 From: Rhys Bevilaqua Date: Fri, 27 Nov 2026 12:36:53 +0800 Subject: [PATCH 4/4] Bump version number in approval file --- .../RavenPersistedTypes.Verify.approved.txt | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/ServiceControl.Persistence.Tests.RavenDB/ApprovalFiles/RavenPersistedTypes.Verify.approved.txt b/src/ServiceControl.Persistence.Tests.RavenDB/ApprovalFiles/RavenPersistedTypes.Verify.approved.txt index c0fafba4a7..6eac0fab2d 100644 --- a/src/ServiceControl.Persistence.Tests.RavenDB/ApprovalFiles/RavenPersistedTypes.Verify.approved.txt +++ b/src/ServiceControl.Persistence.Tests.RavenDB/ApprovalFiles/RavenPersistedTypes.Verify.approved.txt @@ -1,14 +1,14 @@ -ServiceControl.Contracts.CustomChecks.CustomCheck, ServiceControl.Persistence.RavenDB, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null -ServiceControl.EventLog.EventLogItem, ServiceControl.Persistence, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null -ServiceControl.MessageFailures.FailedMessage, ServiceControl.Persistence, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null -ServiceControl.MessageFailures.GroupComment, ServiceControl.Persistence, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null -ServiceControl.MessageFailures.QueueAddress, ServiceControl.Persistence, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null -ServiceControl.Operations.FailedErrorImport, ServiceControl.Persistence, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null -ServiceControl.Persistence.KnownEndpoint, ServiceControl.Persistence, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null -ServiceControl.Persistence.MessagesViewIndex+SortAndFilterOptions, ServiceControl.Persistence.RavenDB, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null -ServiceControl.Persistence.RavenDB.FailedMessageRetry, ServiceControl.Persistence.RavenDB, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null -ServiceControl.Persistence.RavenDB.RetryBatch, ServiceControl.Persistence.RavenDB, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null -ServiceControl.Persistence.RavenDB.Throughput.Models.EndpointDocument, ServiceControl.Persistence.RavenDB, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null -ServiceControl.Persistence.RetryBatchGroup, ServiceControl.Persistence, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null -ServiceControl.Recoverability.FailureGroupMessageView, ServiceControl.Persistence, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null -ServiceControl.Recoverability.FailureGroupView, ServiceControl.Persistence, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null \ No newline at end of file +ServiceControl.Contracts.CustomChecks.CustomCheck, ServiceControl.Persistence.RavenDB, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null +ServiceControl.EventLog.EventLogItem, ServiceControl.Persistence, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null +ServiceControl.MessageFailures.FailedMessage, ServiceControl.Persistence, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null +ServiceControl.MessageFailures.GroupComment, ServiceControl.Persistence, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null +ServiceControl.MessageFailures.QueueAddress, ServiceControl.Persistence, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null +ServiceControl.Operations.FailedErrorImport, ServiceControl.Persistence, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null +ServiceControl.Persistence.KnownEndpoint, ServiceControl.Persistence, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null +ServiceControl.Persistence.MessagesViewIndex+SortAndFilterOptions, ServiceControl.Persistence.RavenDB, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null +ServiceControl.Persistence.RavenDB.FailedMessageRetry, ServiceControl.Persistence.RavenDB, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null +ServiceControl.Persistence.RavenDB.RetryBatch, ServiceControl.Persistence.RavenDB, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null +ServiceControl.Persistence.RavenDB.Throughput.Models.EndpointDocument, ServiceControl.Persistence.RavenDB, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null +ServiceControl.Persistence.RetryBatchGroup, ServiceControl.Persistence, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null +ServiceControl.Recoverability.FailureGroupMessageView, ServiceControl.Persistence, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null +ServiceControl.Recoverability.FailureGroupView, ServiceControl.Persistence, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null \ No newline at end of file