-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[vs17.14] Merge tag v17.14.8 #11861
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[vs17.14] Merge tag v17.14.8 #11861
Conversation
DownloadFile should not rely on the remote server response headers. Unless the DestinationFileName task parameter is specified - let's just fallback to the request URI - which is as well the publicly documented behavior
We're doing a version bump so all branches have up-to-date opt-prof runs. [OptProf data](https://dev.azure.com/devdiv/_apps/hub/ms-vscs-artifact.build-tasks.drop-hub-group-explorer-hub?name=OptimizationData/DotNet-msbuild-Trusted/vs17.14/20250407.8/11350433/1) ---- #### AI description (iteration 1) #### PR Classification Version bump. #### PR Summary This pull request updates the version prefix in the project configuration to reflect a new release. - `eng/Versions.props`: Updated `<VersionPrefix>` from `17.14.5` to `17.14.6`. <!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->
Conflicts: eng/Versions.props
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Updates file-download logic to derive the filename directly from the request URI, and bumps the library version to 17.14.8 with a servicing pre-release label.
- Switch
TryGetFileNameto takeUriinstead ofHttpResponseMessageand remove header-based filename extraction - Bump
<VersionPrefix>to 17.14.8 and change<PreReleaseVersionLabel>toservicinginVersions.props
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/Tasks/DownloadFile.cs | Change TryGetFileName signature to use Uri and drop ContentDisposition fallback |
| eng/Versions.props | Version bump to 17.14.8 and update pre-release label to servicing |
Comments suppressed due to low confidence (1)
src/Tasks/DownloadFile.cs:324
- Removing the header-based fallback (
response.Content.Headers.ContentDisposition?.FileName) will break downloads where the server provides a filename via Content-Disposition. Consider re-introducing header inspection by passing bothUriandHttpResponseMessageor retrieving headers before switching signatures.
filename = !string.IsNullOrWhiteSpace(DestinationFileName?.ItemSpec)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will merge via fast-forward on green.
Fixes #
Context
Changes Made
Testing
Notes