Repository navigation
Fix fwlink version in parent path - #954
Merged
aaronparker merged 1 commit intoNov 20, 2026
Merged
Conversation
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.
Contributor
There was a problem hiding this comment.
🟢 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
approved these changes
Nov 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #953.
Since 28b893c
Resolve-MicrosoftFwLinkonly 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), soGet-EvergreenApp -Name MicrosoftOutlookreturnsUnknown.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 to17.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.