Fix webcmdlets to properly construct URI from body when using -NoProxy#14673
Merged
iSazonov merged 3 commits intoPowerShell:masterfrom Feb 5, 2021
Merged
Fix webcmdlets to properly construct URI from body when using -NoProxy#14673iSazonov merged 3 commits intoPowerShell:masterfrom
iSazonov merged 3 commits intoPowerShell:masterfrom
Conversation
…t to handle CustomMethodNoProxy case
TravisEz13
approved these changes
Jan 27, 2021
Member
Author
|
The codefactor issues pertain to existing style in that file. The changes follow the current style. Updating the entire file is not in scope of this PR. |
iSazonov
approved these changes
Jan 28, 2021
|
This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days. |
Member
Author
|
@iSazonov ready to merge? |
|
🎉 Handy links: |
daxian-dbw
pushed a commit
to daxian-dbw/PowerShell
that referenced
this pull request
Mar 11, 2021
|
🎉 Handy links: |
|
🎉 Handy links: |
This was referenced Mar 12, 2021
WamWooWam
pushed a commit
to WamWooWam/PowerShell
that referenced
this pull request
Mar 16, 2021
WamWooWam
added a commit
to WamWooWam/PowerShell
that referenced
this pull request
Mar 16, 2021
[7.1.3] - 2021-03-11 *** Engine Updates and Fixes - Remove the 32K character limit on the environment block for `Start-Process` (PowerShell#14111) - Fix webcmdlets to properly construct URI from body when using `-NoProxy` (PowerShell#14673) *** General Cmdlet Updates and Fixes - Fix `PromptForCredential()` to add `targetName` as domain (PowerShell#14504) *** Build and Packaging Improvements <details> <summary> Bump .NET SDK to 5.0.4 </summary> <ul> <li>Bump .NET SDK to 5.0.4 (Internal 14775)</li> <li>Disable running markdown link verification in release build CI (PowerShell#14971, PowerShell#14974, PowerShell#14975)</li> <li>Use template that disables component governance for CI (PowerShell#14938)</li> <li>Declare which variable group is used for checking the blob in the release build (PowerShell#14970)</li> <li>Add suppress for nuget multi-feed warning (PowerShell#14893)</li> <li>Disable code signing validation where the file type is not supported (PowerShell#14885)</li> <li>Install wget on <code>CentOS</code> 7 docker image (PowerShell#14857)</li> <li>Fix install-dotnet download (PowerShell#14856)</li> <li>Make universal Deb package based on deb package spec (PowerShell#14681)</li> <li>Fix release build to upload global tool packages to artifacts (PowerShell#14620)</li> <li>Update <code>ini</code> component version in test <code>package.json</code> (PowerShell#14454)</li> <li>Add manual release automation steps and improve changelog script (PowerShell#14445)</li> <li>Update markdown test packages with security fixes (PowerShell#14145)</li> <li>Fix a typo in the <code>Get-ChangeLog</code> function (PowerShell#14129)</li> <li>Disable global tool copy to unblock release</li> </ul> </details> [7.1.3]: PowerShell/PowerShell@v7.1.2...v7.1.3
This was referenced Mar 17, 2021
22 tasks
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.
PR Summary
Due to complexity of parameters with the webcmdlets, they are handled at runtime in code rather than just through parametersets. In this case, the body can be provided as a dictionary which is used to construct query parameters appended to the URI. The logic of that code checks if the cmdlet is currently using the
StandardMethodSetbefore constructing the query. However,-NoProxyis in theStandardMethodNoProxyso when that switch is used, then the body doesn't get turned into query parameters.The fix is to change the
IsStandardMethodSet()to return true if the current parameterset is eitherStandardMethodorStandardMethodNoProxy. And same change forCustomMethodandCustomMethodNoProxycheck.PR Context
This was reported by a customer directly to Microsoft through premier support.
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:or[ WIP ]to the beginning of the title (theWIPbot will keep its status check atPendingwhile the prefix is present) and remove the prefix when the PR is ready.