From ebb9f363d1891355482e45c0a2e9aa713d4aa2bd Mon Sep 17 00:00:00 2001 From: Freddy Kristiansen Date: Sat, 2 Dec 2023 09:52:58 +0100 Subject: [PATCH] Issue 3259 (#3261) Fixes #3259 Co-authored-by: freddydk --- Artifacts/Get-BCArtifactUrl.ps1 | 6 +++++- ReleaseNotes.txt | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Artifacts/Get-BCArtifactUrl.ps1 b/Artifacts/Get-BCArtifactUrl.ps1 index 9a281de69..95cc6aae3 100644 --- a/Artifacts/Get-BCArtifactUrl.ps1 +++ b/Artifacts/Get-BCArtifactUrl.ps1 @@ -206,9 +206,13 @@ try { { $Response = Invoke-RestMethod -UseBasicParsing -ContentType "application/json; charset=UTF8" -Uri "$GetListUrl$nextMarker" if (([int]$Response[0]) -eq 239 -and ([int]$Response[1]) -eq 187 -and ([int]$Response[2]) -eq 191) { - # Remove BOM + # Remove UTF8 BOM $response = $response.Substring(3) } + if (([int]$Response[0]) -eq 65279) { + # Remove Unicode BOM (PowerShell 7.4) + $response = $response.Substring(1) + } $enumerationResults = ([xml]$Response).EnumerationResults if ($enumerationResults.Blobs) { diff --git a/ReleaseNotes.txt b/ReleaseNotes.txt index 63c858ffd..e40f6cf1a 100644 --- a/ReleaseNotes.txt +++ b/ReleaseNotes.txt @@ -2,6 +2,7 @@ When using Publish-PerTenantExtensionApps with a set of apps, which takes a very long time to publish, the AccessToken might expire and lead to failure. AccessToken is now refreshed when needed. Issue #3254 vsix no longer includes dotnet framework 4.8 compatible dlls for version 24 Avoid using CDN when downloading from bcinsider as this frequently changes and subsequently fails +Issue #3259 get-bcartifactUrl PS7.4 Error querying artifacts 6.0.1 New-AadAppsForBC doesn't work with the newer versions of Microsoft.Graph module (where the type of the accesstoken parameter has changed)