microsoft / microsoft/CSS-Exchange

[Issue] Invoke-WebRequestWithProxyDetection fails on PowerShell 7 when -OutFile is not specified

Open
#2,066 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue
Dominant language
PowerShell
Stars
1.3k
Forks
395
Avg merge
14h 7m
Merged PRs (30d)
5

Description

Describe the issue

$OutFile is an optional parameter in the Invoke-WebRequestWithProxyDetection shared function:

image

Even if it is not provided, we add it to the parameters and call Invoke-WebRequest:

image

Windows PowerShell allows this:

image

PowerShell 7 does not:

image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the Invoke-WebRequestWithProxyDetection shared function and inspect how its parameters are passed to Invoke-WebRequest. Reproduce the missing -OutFile case on PowerShell 7, compare it with Windows PowerShell, and verify that the function works when -OutFile is omitted without breaking file-download behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.