Skip to content

Conversation

@surayya-MS
Copy link
Member

Fixes #

Context

Changes Made

Testing

Notes

Mariana Dematte and others added 3 commits April 11, 2025 22:53
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 -->
@Copilot Copilot AI review requested due to automatic review settings May 19, 2025 17:01
@surayya-MS surayya-MS requested a review from a team as a code owner May 19, 2025 17:02
Copy link
Contributor

Copilot AI left a 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 TryGetFileName to take Uri instead of HttpResponseMessage and remove header-based filename extraction
  • Bump <VersionPrefix> to 17.14.8 and change <PreReleaseVersionLabel> to servicing in Versions.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 both Uri and HttpResponseMessage or retrieving headers before switching signatures.
filename = !string.IsNullOrWhiteSpace(DestinationFileName?.ItemSpec)

Copy link
Member

@rainersigwald rainersigwald left a 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.

@rainersigwald rainersigwald merged commit a7a4d5a into dotnet:vs17.14 May 19, 2025
10 checks passed
@surayya-MS surayya-MS deleted the msbuild/vs17.14 branch May 26, 2025 14:28
This was referenced Oct 15, 2025
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.

3 participants