Aditya Patwardhan
5e7105884e
[release/v7.4.15] Close pipe client handles after creating the child ssh process ( #27139 )
2026-04-03 10:08:58 -07:00
Justin Chung
62c12ee7e5
Merged PR 38882: Merged PR 38690: Update MaxVisitCount and MaxHashtableKeyCount if visitor saf...
...
Merged PR 38690: Update MaxVisitCount and MaxHashtableKeyCount if visitor safe value context indicates SkipLimitCheck is true
----
#### AI description (iteration 1)
#### PR Classification
Bug fix that updates the safe value checks by dynamically adjusting limit values based on the visitor context to improve security.
#### PR Summary
This pull request refactors the safe value visitor logic to replace hard-coded limit constants with context-driven readonly fields and adjusts the conditional checks accordingly. It also adds a test to verify that insecure psd1 files correctly fail when the -SkipLimitCheck parameter is used.
- `src/System.Management.Automation/engine/parser/SafeValues.cs`: Replaces constant limits with dynamic fields (_maxVisitCount and _maxHashtableKeyCount) set based on the safe value context, and updates conditional checks to use these fields.
- `test/powershell/Modules/Microsoft.PowerShell.Utility/PowerShellData.tests.ps1`: Adds a test case to ensure that insecure psd1 files trigger an error when -SkipLimitCheck is applied.
<!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->
Related work items: #163511
2026-03-10 17:45:10 +00:00
Aditya Patwardhan and Dongbo Wang
44f2ffebce
[release/v7.4] Skip the flaky Update-Help test for the PackageManagement module ( #26871 )
...
Co-authored-by: Dongbo Wang <dongbow@microsoft.com >
2026-02-20 22:50:32 +00:00
Travis Plunk
f9cd7d98c6
[release/v7.4] Fix $PSDefaultParameterValues leak causing tests to skip unexpectedly ( #26869 )
2026-02-20 22:41:08 +00:00
06efedb2ea
[release/v7.4] Mark flaky Update-Help web tests as pending to unblock CI ( #26805 )
...
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com >
Co-authored-by: TravisEz13 <10873629+TravisEz13@users.noreply.github.com >
2026-02-13 13:59:30 -05:00
Travis Plunk and Dongbo Wang
84c8a2d3ac
[release/v7.4] Update the Update-Help tests to use -Force to remove read-only files ( #26786 )
...
Co-authored-by: Dongbo Wang <dongbow@microsoft.com >
2026-02-13 11:44:40 -05:00
PowerShell Team Bot
3dca89f37a
[release/v7.4] Mark the 3 consistently failing tests as pending to unblock PRs ( #26197 )
2025-10-14 18:18:03 -07:00
PowerShell Team Bot
010da3a003
[release/v7.4] Suppress false positive PSScriptAnalyzer warnings in tests and build scripts ( #26058 )
2025-10-09 15:54:03 -07:00
Aditya Patwardhan
99c673d3fe
Bump to .NET 8.0.403 and update dependencies ( #24405 )
2024-10-12 00:32:28 +00:00
Dongbo Wang and James Truher [MSFT]
a98134062d
Rewrite the mac syslog tests to make them less flaky ( #21174 ) ( #24152 )
...
Co-authored-by: James Truher [MSFT] <jimtru@microsoft.com >
2024-08-14 09:53:47 -07:00
Dongbo Wang and CarloToso
35994915e6
Fix WebCmdlets when -Body is specified but ContentType is not ( #23952 ) ( #24145 )
...
Co-authored-by: CarloToso <105941898+CarloToso@users.noreply.github.com >
2024-08-13 16:06:06 -07:00
Aditya Patwardhan
45d9990c1d
Merged PR 31780: Resolve paths correctly when importing files or files referenced in the module manifest
2024-07-16 16:00:38 +00:00
Aditya Patwardhan
a0bf209924
Expand ~ to $home on Windows with tab completion ( #21529 ) ( #23934 )
2024-06-11 16:16:32 -07:00
Aditya Patwardhan and Steve Lee
dc60e20cfb
Fix Test-Path -IsValid to check for invalid path and filename characters ( #21358 ) ( #23931 )
...
Co-authored-by: Steve Lee <slee@microsoft.com >
2024-06-11 16:05:59 -07:00
Aditya Patwardhan
3ce794d1e4
Make sure both stdout and stderr can be redirected from a native executable ( #20997 ) ( #23911 )
2024-06-11 10:03:26 -07:00
Patrick Meinecke and Steve Lee
b0692c1f07
[release/v7.4.2] Revert "Adjust PUT method behavior to POST one for default content type in WebCmdlets" ( #21049 ) ( #21428 )
...
Co-authored-by: Steve Lee <slee@microsoft.com >
2024-04-05 10:55:17 -07:00
Patrick Meinecke
c16cfe8f87
[release/v7.4.2] Fix regression -Tail 0 -Wait ( #20734 ) ( #21418 )
2024-04-04 15:24:35 -07:00
Patrick Meinecke
3dd4451360
[release/v7.4.2] Revert the PR #17856 (Do not preserve temporary results when no need to do so) ( #21368 ) ( #21425 )
2024-04-04 15:23:22 -07:00
Patrick Meinecke
200ac639e1
[release/v7.4.2] Make sure the assembly/library resolvers are registered at early stage ( #21361 ) ( #21424 )
2024-04-04 15:23:05 -07:00
Patrick Meinecke
0e4b9d74f3
[release/v7.4.2] Fix PowerShell class to support deriving from an abstract class with abstract properties ( #21331 ) ( #21422 )
2024-04-04 15:22:35 -07:00
Patrick Meinecke
73865ce253
[release/v7.4.2] Fix the regression when doing type inference for $_ ( #21223 ) ( #21421 )
2024-04-04 15:22:20 -07:00
Patrick Meinecke
feafe7aa67
[release/v7.4.2] Fix a regression in Format-Table when header label is empty ( #21156 ) ( #21420 )
2024-04-04 15:22:02 -07:00
Patrick Meinecke
cedb0589b6
[release/v7.4.2] Fix Get-Error serialization of array values ( #21085 ) ( #21419 )
2024-04-04 15:21:42 -07:00
Dongbo Wang
6a98b28414
Merged PR 29197: Backport three PRs to v7.4.1 release
...
The PRs are listed here: https://github.com/PowerShell/PowerShell/pulls?q=is%3Apr+label%3ABackPort-7.4.x-Consider+is%3Aclosed
2024-01-11 03:29:18 +00:00
Dongbo Wang
851d21b673
Fix Start-Process -PassThru to make sure the ExitCode property is accessible for the returned Process object ( #20749 ) ( #20866 )
2023-12-07 21:39:08 -08:00
Dongbo Wang
29fa9dfabd
Fix rendering of DisplayRoot for network PSDrive ( #20793 ) ( #20863 )
2023-12-07 21:36:40 -08:00
Dongbo Wang
cfc3a29426
Fix the tab completion tests ( #20867 )
2023-12-07 15:53:22 -08:00
Travis Plunk
883fc73045
Merged PR 28427: [backport] Update PSResourceGet version for 1.0.1 release ( #20652 )
...
Update `PSResourceGet` version for `1.0.1` release (#20652 )
2023-11-10 18:14:15 +00:00
Aditya Patwardhan
594abae9a1
Merged PR 28409: Remove Auth header content from ErrorRecord
...
Remove Auth header content from ErrorRecord
2023-11-09 03:08:28 +00:00
Aditya Patwardhan
bd8030de27
Added a missing ConfigureAwait(false) call ( #20606 ) ( #20622 )
2023-11-01 13:38:24 -07:00
Aditya Patwardhan
d1fc83f473
Block getting help from network locations in restricted remoting sessions ( #20593 ) ( #20615 )
2023-11-01 12:39:35 -07:00
Aditya Patwardhan
b60d5659e7
Bump PSReadLine from 2.2.6 to 2.3.4 ( #20305 ) ( #20533 )
2023-10-19 18:56:29 -07:00
Aditya Patwardhan
5c1ca0f3f6
Fix unixmode to handle setuid and sticky when file is not an executable ( #20366 ) ( #20537 )
2023-10-19 14:43:22 -07:00
Aditya Patwardhan
bdf1cfd2b1
Fix UNC path completion regression ( #20419 ) ( #20541 )
2023-10-19 14:41:28 -07:00
Aditya Patwardhan
dd1fe759d4
Fix implicit remoting proxy cmdlets to act on common parameters ( #20367 ) ( #20530 )
2023-10-19 14:35:40 -07:00
Dongbo Wang
a092dad7c0
[release/v7.4.0-preview.6] Set experimental features to stable for 7.4 release ( #20285 ) ( #20362 )
2023-09-25 13:10:28 -07:00
Dongbo Wang
d5e2ddb984
[release/v7.4.0-preview.6] Continued improvement to tests for release automation ( #20182 ) ( #20259 )
2023-09-11 17:22:25 -07:00
Dongbo Wang
67310dfc2a
[release/v7.4.0-preview.6] Skip the test on x86 as InstallDate is not visible on Wow64 ( #20165 ) ( #20255 )
2023-09-11 16:50:09 -07:00
Dongbo Wang
08b6f61798
[release/v7.4.0-preview.6] Harden some problematic release tests ( #20155 ) ( #20254 )
2023-09-11 16:45:46 -07:00
James Truher [MSFT]
046301b716
Additional test hardening for tests which fail in release pass. ( #20093 )
2023-08-16 11:28:59 -07:00
James Truher [MSFT]
7b3e5444de
Don't use a completion which has a space in it ( #20064 )
2023-08-01 18:07:37 -07:00
MartinGC94
0502da7109
Fix dynamic parameter completion ( #19510 )
2023-07-31 17:52:50 -07:00
Frode Flaten
ced79cd1a1
Use OrdinalIgnoreCase to lookup script breakpoints ( #20046 )
2023-07-31 17:45:49 -07:00
stevenebutler
3710671c16
Guard against null or blank path components when adding to module path ( #19922 )
2023-07-31 11:00:27 -07:00
Ikko Eltociear Ashimine
0beea512eb
Fix typo in Logging.Tests.ps1 ( #20048 )
2023-07-31 10:37:28 -07:00
James Truher [MSFT]
91447e62de
Fixes for release tests ( #20028 )
2023-07-27 15:04:30 -07:00
CarloToso
e8ce6a5b1f
Support Unix-Socket in WebCmdlets ( #19343 )
2023-07-24 16:44:32 -07:00
MartinGC94
3f128d680f
Change how relative paths in Resolve-Path are handled when using the RelativeBasePath parameter ( #19755 )
2023-07-24 09:47:24 -07:00
dwtaber
3b9e70cfc8
Wait-Process: add -Any and -PassThru parameters ( #19423 )
2023-07-24 09:46:16 -07:00
Armaan Mcleod
836c0c580b
Added -CaseInsensitive switch parameter to Select-Object & Get-Unique cmdlets ( #19683 )
...
* Added Select-Object CaseInsensitive parameter and tests
* Added Get-Unique CaseInsensitive parameter and tests
* Fix codefactor issue
* Add named arguements
* Remove comments
2023-07-24 09:34:42 -07:00