microsoft / microsoft/CSS-Exchange
[Issue] Invoke-WebRequestWithProxyDetection fails on PowerShell 7 when -OutFile is not specified
Open
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:
Even if it is not provided, we add it to the parameters and call Invoke-WebRequest:
Windows PowerShell allows this:
PowerShell 7 does not:
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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