Skip to content

Fix fwlink version in parent path - #954

Merged
aaronparker merged 1 commit into
EUCPilots:mainfrom
romainwager:fix/fwlink-version-in-path
Nov 20, 2026
Merged

aaronparker merged 1 commit into
EUCPilots:mainfrom
romainwager:fix/fwlink-version-in-path

Conversation

@romainwager

Copy link
Copy Markdown
Contributor

Fixes #953.

Since 28b893c Resolve-MicrosoftFwLink only looks for a version in the file name of the resolved URL. Microsoft Outlook has it in the parent folder (.../v2/1.2026.1026.100/Microsoft.OutlookForWindows_x64.msix), so Get-EvergreenApp -Name MicrosoftOutlook returns Unknown.

This keeps the same regex and still ignores the query string, but walks the path segments from the file name outwards and takes the first match. A version in the file name still wins over one in a folder.

Two tests added: the Outlook URL shape, and file name taking priority over a parent segment.

I checked the matching against the URLs that the fwlinks of every app using the helper resolve to today: Outlook goes back to 1.2026.1026.100, the ODBC 17 driver URL goes back to 17.10.6.1 (hidden today because the app sets the version from its manifest), and the others are unchanged. I have not run Pester or PSScriptAnalyzer locally, so I am relying on the validation workflow here.

Resolve-MicrosoftFwLink only matched a version in the file name of the resolved URL. Microsoft Outlook has it in the parent folder, so the version came back as Unknown. Check the file name first, then the parent path segments from the closest outwards. The query string is still ignored.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are reported for the URL version-extraction change.

No open issues 🎉

What changed in this PR

Updates the shared Resolve-MicrosoftFwLink helper to recover versions stored in parent URL folders, addressing the Microsoft Outlook Unknown version regression in #953.

Changes:

  • Searches URL path segments from the filename outward, preserving filename priority and excluding query parameters.
  • Adds regression tests for Outlook-style parent-folder versions and filename precedence.
File Description
tests/​Shared/​Resolve-MicrosoftFwLink.Tests.ps1 Adds tests for parent-folder version extraction and filename priority.
Evergreen/​Shared/​Resolve-MicrosoftFwLink.ps1 Falls back through parent path segments while retaining the existing version regex and warning behavior.

Review effort: Balanced

@aaronparker
aaronparker merged commit 8e9a8da into EUCPilots:main Nov 20, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: MicrosoftOutlook returns Version "Unknown"

3 participants