-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Closed
Labels
In-PRIndicates that a PR is out for the issueIndicates that a PR is out for the issueIssue-BugIssue has been identified as a bug in the productIssue has been identified as a bug in the productWG-Cmdletsgeneral cmdlet issuesgeneral cmdlet issues
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues.
- Refer to the FAQ.
- Refer to Differences between Windows PowerShell 5.1 and PowerShell.
Steps to reproduce
Here is the dotnet issue: dotnet/runtime#66746
Here is the breaking change note: dotnet/docs#28720
Basically, System.Net.NetworkInformation.Ping doesn't support specifying payload on Linux:
- it throws
PlatformNotSupportedexception when custom Ping payload is specified, when the process is not running as root. - even if running as root (sudo), the custom payload is simply ignored because on Linux it's implemented by interfacing with the
pingnative utility, which doesn't support specifying custom payload.
So, whatever functionality in Test-Connection that depends on specifying custom payload is broken and should be either fixed or removed.
Attention: Workaround was added to test code in Test-Connection.Tests.ps1 by #16930. Please fix the tests when resolving this bug, or removing the related tests if the affected functionalities will be removed.
Expected behavior
N/AActual behavior
N/AError details
N/AEnvironment data
PowerShell 7.3-preview.3Visuals
No response
tim-elmer
Metadata
Metadata
Assignees
Labels
In-PRIndicates that a PR is out for the issueIndicates that a PR is out for the issueIssue-BugIssue has been identified as a bug in the productIssue has been identified as a bug in the productWG-Cmdletsgeneral cmdlet issuesgeneral cmdlet issues